Advanced Reference Qualifier for Assigned To - Members of one group

kedler
Kilo Guru

Hi,

I want my Assigned To field on my incident form to always be limited to the group members of one particular group. I tried using the script include from this community post but it is not working for me.

https://community.servicenow.com/community?id=community_question&sys_id=26900f25db98dbc01dcaf3231f96...

I also dont know what to put in the Advanced Qualifier field, Ive seen many different answers. Can anyone help?

1 ACCEPTED SOLUTION

DScroggins
Kilo Sage

If you created a script include like the linked community article describes with the function - GetExecutiveMembers(). Then you can call that function in the advanced reference qualifier like so:

javascript:GetExecutiveMembers();

 

If you wanted to utilize a normal script include/function then the advanced qualifier would look like so (this example assumes you had a script include named "customScriptInclude" with a function named "customFunction":

javascript: new customScriptInclude().customFunction();

View solution in original post

4 REPLIES 4

DScroggins
Kilo Sage

Hi,

You can simply list the assignment_group field as the dependent field for the assigned_to. That will limit the choices to only those who are in the listed group. Like this:

DScroggins
Kilo Sage

If you created a script include like the linked community article describes with the function - GetExecutiveMembers(). Then you can call that function in the advanced reference qualifier like so:

javascript:GetExecutiveMembers();

 

If you wanted to utilize a normal script include/function then the advanced qualifier would look like so (this example assumes you had a script include named "customScriptInclude" with a function named "customFunction":

javascript: new customScriptInclude().customFunction();

Prateek kumar
Mega Sage

You wouldn't need any scripting.

Try this. Make your reference field mapped to Group member and in the filter condition specify the group name

find_real_file.png


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

sachin_namjoshi
Kilo Patron
Kilo Patron

Take look into OOB dictionary for assigned to.

You can set dependent value for assignment group in your assigned to dictionary

 

find_real_file.png