Add non-ITIL users to a group watch list so they can see incidents in a simple list on the portal

Sam31
Giga Contributor

Hi All,

I've created a simple list widget on the portal of my ServiceNow instance. The simple list is set to show any live priority 1 (critical) incidents. I need this list to be available for any non-ITIL users that are in a specified group. Since the watch list dictionary points to the sys_user table, I have created a new dictionary which points to the sys_group table. This is called u_group_watch_list.

I can now add groups to the group watch list but I need to configure a business rule(?) to allow users within a group that is in the group watch list to read an incident. 

I took some inspiration from this thread: https://community.servicenow.com/community?id=community_question&sys_id=b2378b29db1cdbc01dcaf3231f96...

I couldn't follow the thread to completion as they had other business rules and different configurations. 

Is anyone able to advise what I need to do next?

 

Thanks!

1 ACCEPTED SOLUTION

Sorry, my bad, the sys id in your or condition needs to be enclosed by the same sort of quotation marks! change to this:

current.addOrCondition("u_group_watch_list', "CONTAINS", "sys_id of P1Notifications group");

View solution in original post

7 REPLIES 7

Sam31
Giga Contributor

Hi David,

 

Thanks for the reply. I've added what I think is right which is shown below:

 

find_real_file.png

 

The error on line 13 reads the following:

 

find_real_file.png

 

Is it clear to see what I've done wrong in this case?

 

Thanks.

Sorry, my bad, the sys id in your or condition needs to be enclosed by the same sort of quotation marks! change to this:

current.addOrCondition("u_group_watch_list', "CONTAINS", "sys_id of P1Notifications group");

Sam31
Giga Contributor

Thanks David,

This has worked!