The CreatorCon Call for Content is officially open! Get started here.

Assigned to users Should be dependent on Assignment Group

Shuhei1
Tera Contributor

Hi All,

The sc_task screen has two fields, Assignment Group and Assigned_To. I want to display users in the Assigned_To search based on the group selected in Assigned Groups.

Setting Assignment group in the Dependent Field of Assigned_To did not work.

I tried the following questions but it didn't work.

https://community.servicenow.com/community?id=community_question&sys_id=08f88613db655740fac7f4621f96...

Please tell me how to do it.

thanks all

12 REPLIES 12

Excuse me. I don't think the catalog item is relevant. I want to apply to sc_task table.

Also, the reference qualifier

 

Is the red sauce correct?

javascript: new UserGroup (). GetMembers (current.variables.asn_grp);

 

Hi 

If it is not a Catalog item variable then using current.variables is wrong. just try with this once - 

javascript:new UserGroup().GetMembers(current.assignment_group);

 

Regards

Omkar Mone

thank you Omkar Mone.

I tried, but users other than the group are also displayed.

Hi 

your function name is wrong from what you have in Script include, can you try with this - 

javascript:new UserGroup().getMembers(current.assignment_group);

 

Regards

Omkar Mone

Corrected the function name, but the result was the same as before.