Assignment group select group user only display in assigned to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 03:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 03:55 AM
Hi Adamshafi,
Your question is not clear, can you elaborate more. Maybe you can paste the screenshot, on which you're looking for the help.
Thanks,
Raj

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 03:59 AM
Hi,
Use the On Demand Script Include in this case as below.
Script Include -
Name - GroupToUser(same as function name)
function GroupToUser()
{
var a=[];
var gr = new GlideRecord('sys_user_grmember');//sys_group_has_role
gr.addEncodedQuery('group='+current.assignment_group);
gr.query();
while(gr.next())
{
a.push(gr.getValue('user'));
}
return 'sys_idIN'+a;
}
Now call this script include in your Assigned To field (to get only those user who are part of selected assignment group).
Assigned To --> Configure Dictionary --> Reference Specification (Advanced)
javascript:global.GroupToUser();
Mark this as Helpful/Correct, if Applicable.
Regards,
Sourabh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 04:03 AM
Hi,
are you saying when group is selected then it should show only members of that group in assigned to
if yes then use advanced ref qualifier on assigned to
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader