Get the assigned to based on assignment group

Pravallika9
Tera Expert

Hi,

OOB assignment group and assigned to fields are reference fields.

I have written a script where based on assignment group assigned to members to shown in the reference.

 

My requirement is the user should have the capability to select multiple groups as well as multiple assigned to.

I have created list type assignment group and assigned to fields respectively.

But when I select the assignment groups then in assigned to all the users are visible.

I want the dependancy of assignment group in assigned to.

But it is not happening.

Please suggest some ideas how to proceed

15 REPLIES 15

@Pravallika9 

can you share how are you calling the ref qualifier?

script looks fine.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sure

Pravallika9_0-1680773157142.png

Above is the script include.

Pravallika9_2-1680773338870.png

REFERENCE QUALIFIER:   javascript: new AssignmentGroups().groupMembers();

 

 

 

@Pravallika9 

field is on which table?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

incident table

@Pravallika9 

but assigned_to field is on task table.

Did you create dictionary override for that field and include that in ref qualifier.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader