Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Assignment group in Change request form

RSSG
Tera Contributor

Hi All

I have a requirement where on Change reqest form I need to show only specific groups to appear (Groups which I have created) when clicking on "Assignment group". How can I do that?

 

Change Request form

RSSG_0-1686637649363.png

 

 

Lets say I want only these groups to appear for user to select any one 

RSSG_1-1686637684691.png

 

15 REPLIES 15

@Ankur Bawiskar 

Hi,

I tried putting this query but it is not working.

Also Is there any other way of doing this task other than query run ?

@RSSG 

share your dictionary override screenshot

Also did you give correct category choice value during comparison?

Also did you give correct group sysIds?

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

RSSG_0-1686720289771.png

Original 

RSSG_1-1686720336895.png

Uset this query in ref. qualifier

var query;
if (current.category == 'Firewall Change Management')
query = 'Firewall Operator,Functional System Owner';
query;

@RSSG 

you didn't update the reference qualifier in your screenshot

also whose category you wanted to check? you want to check for parent field on sysapproval_group table?

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

This is what I want to do- On selecting Catergory as "Firewall change management", the "Assignment group" should show only specific groups which I want

RSSG_0-1686721017410.png

 

Now this is what I get when opening Dict.Overrides from Conf.Dictionary of "Assignment Group"

RSSG_1-1686721179145.png

 I did updated after inserting the query in Ref.Qualifier , refreshed page and again checked on change form by opening Assignment Group but it shows list of all groups as before.