Make Assignment group dynamic

AhuelieW
Tera Contributor

Hello ServiceNow gurus, could you please help me ?

I've created a client script to auto populate the assignment_group based of the Assigned_to. In other words, you just have to type the fulfiller's name and his service group will get populated in the assignment_group. But that works well when the fulfiller only belongs to one service group.

My issue is when the fulfiller is a member of multiple groups. What I'd like to do is to only display the service groups he is a member of into the assignment_group. 

 

Let say for example that "Abel tuter" is a member of Service Desk and IT Device support. When you enter "abel " in the assigned_to, we only want to see these two service groups in the assignment_group instead of the list of all available service group (as shown in the picture below)

AhuelieW_1-1756256993382.png

 

 

AhuelieW_0-1756256848063.png

 

 

1 ACCEPTED SOLUTION
2 REPLIES 2

Sandeep Rajput
Tera Patron

@AhuelieW Instead of a client script, you need to create an Advanced reference qualifier on the Group field. This qualifier will use a script include to fetch the sys_ids of the assignment groups which the user is member of.

 

Please refer to this video https://www.youtube.com/watch?v=p_1oOjahLy0 to know more about it.

Been in a predicament in ServiceNow, where you know the person a task needs to be assigned to, but don't know the right group? I got you! In this video, we add an advanced reference qualifier on a dictionary override on the assignment group fields (for incidents) that calls a server side script ...