Portal Widget for assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 07:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 05:41 AM
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:
- All - Portal - Pages
- Open Page
- Open in Designer
- Select target Portal
- Add Simple List widget
- Select Edit Pencil in top right of widget
- Select hamburger (3 lines) in top right of widget details
- Add desire role(s) to Behavior section of instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 07:02 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 10:39 AM
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.