
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 10:59 PM
In change request form - assignment group field , how to make only those assignment groups visible in which logged in user is present. I want to make these changes only on change request form and not on incident and service request form.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 11:13 PM
Just tested this out and it is working
javascript: 'sys_idIN'+ gs.getUser().getMyGroups().toArray().join(",")

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 11:04 PM
Hi Ajay,
This can be done via Reference qualifiers. Pls refer below example and adjust it as per your requirement.
https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/script/server_scripting/task/t_ExJSConstrainAssignmentGroupField.html
You can create a Dictionary override on change request Table so that this reference qualifier is not applied to Other Tables.
https://docs.servicenow.com/bundle/london-platform-administration/page/administer/data-dictionary-tables/task/t_DefineADictionaryOverride.html
-Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 11:06 PM
Hello,
You need to add a Dictionary override on the Assignment group field for the Reference qualifier and add the following script.
javascript: SYS_IDIN gs.getUser().getMyGroups().toArray().join(",")
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 11:13 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 11:07 PM
Hi
Write a Reference Qual Condition for assignement group with dictionary over with this :
javascript :gs.getUser().getMyGroups();