Portal Widget for assignment group

Jake Golden
Tera Expert

Hello,

 

Has anyone set up a widget on the portal to display tickets by assignment group? 

 

OOTB we have the simple list that displays tickets you opened, but I would like to see if I could make one that displays tickets by assignment group. 

 

thanks,

Jake

 

3 REPLIES 3

Syd S
Tera Contributor

I have a similar requirement. I can show/hide the Simple List widget based on a role by adding the role to the behavior section of a widget instance however, I do not see a way to do it by assignment group. For my use case there is not an existing role, and we are trying not to setup new roles. I could probably clone and edit the code but wanted to stay OOTB.

If you are unfamiliar with setting the behavior of widgets in an instance, below is how I was able to accomplish it in our environment:

  1. All - Portal - Pages
  2. Open Page
  3. Open in Designer
  4. Select target Portal
  5. Add Simple List widget
  6. Select Edit Pencil in top right of widget
  7. Select hamburger (3 lines) in top right of widget details
  8. Add desire role(s) to Behavior section of instance

hi@Syd S

 

Thanks so much for the info. After learning more about all of the OOTB widgets ServiceNow has to offer, I moved on from the Simple List to using the 'Data Table from URL Definition', which uses the 'widget-data-table' widget. 

 

You may already know all about this one, but with the data table from URL definition, you can modify all your queries in the URL. So essentially, I have my assignment group querying within the URL and now I have a table that can be dynamic for any field, i.e., assignment group. 

 

But thanks again for the roles! As I progress further with cloning the widget I spoke about above, and creating a new page for it - I will be utilizing those role behaviors in locking it down. 

 

thanks!

Jake

I too moved on from Simple List to Data Tables for most things. 🙂 

 

Since my post I did find a way to accomplish showing/hiding based on User Criteria which is what I really wanted because it has more flexibility than Assignment Groups. 

I had to enable the glide.service_portal.user_criteria_enabled system property and  then add the Can View and Can Not View related lists to the widget and widget instance form. 

I now can set the visibility of widgets based on the same User Criteria we use for catalog items.