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

Pradeep Thipani
Mega Sage

Hi @AhuelieW ,

 

I would like you go through the below two accepted solutions:

https://www.servicenow.com/community/itsm-forum/need-to-have-assignment-group-only-show-groups-that-...

https://www.servicenow.com/community/itsm-forum/when-assigned-to-field-is-selected-then-groups-will-...

 

I have answered this same question in other area as well. PFB link:

https://www.servicenow.com/community/itsm-forum/make-assignment-group-dynamic/m-p/3363941#M546407

 

Thanks,

Pradeep

 

 

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep

View solution in original post

2 REPLIES 2

Pradeep Thipani
Mega Sage

Hi @AhuelieW ,

 

I would like you go through the below two accepted solutions:

https://www.servicenow.com/community/itsm-forum/need-to-have-assignment-group-only-show-groups-that-...

https://www.servicenow.com/community/itsm-forum/when-assigned-to-field-is-selected-then-groups-will-...

 

I have answered this same question in other area as well. PFB link:

https://www.servicenow.com/community/itsm-forum/make-assignment-group-dynamic/m-p/3363941#M546407

 

Thanks,

Pradeep

 

 

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep

Sandeep Rajput
Tera Patron
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 ...