when I Assign to an incident, it display all groups instead of the ones he belongs to only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 03:07 PM
Hello,
I added to the assignment group dictionary active=true under "type specification" list reference qualifier "advance" reference qualifier field in javascript "active=true" and it works. It only displays the active group on the incident and change request form when selecting the assignment group. Now the problem that I have is, when I assign to "a person name" on the assignment group when searching it displays all the groups instead of the group he is a member of. This is how it was working before I made this update.
Does anybody know how to fix this?
Thank you for listening and assistance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 04:41 PM
Hi, I would start by reversing\rolling back your changes, so that the reference qualifier functionality is restored to previous condition; Then once you have restored the previous reference qualifier, you should be able review the functionality and append 'active=true' to the query that is used to limit available groups to those that match the records assignee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 09:14 PM
Hi @Jorge17 ,
I trust you are doing great.
Here's a suggested solution:
- Navigate to the ServiceNow instance and open the "Dictionary" for the assignment group field.
- Locate the "Reference Qualifier" field and edit it.
- Modify the existing JavaScript code to include a condition that filters the groups based on the person's membership.
- You can use the existing condition "active=true" and add an additional condition to filter by the person's membership.
- Assuming the person's name is stored in the "assigned_to" field, you can modify the code as follows:
javascript: 'active=true^sys_idINjavascript:current.assigned_to.groups.sys_id'
- Save the changes to the reference qualifier and test the behavior by searching for a person's name in the assignment group field.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2023 06:22 AM
HI Amit,
Thank you for your assistance but it didn't work. It still displays all the group when I add my name in the assigned to. I reverted back the change you suggested.
Currently, when I search in assignment group it only display group ending in "Support" (see below). When I add my name in assign to, it only display the 6 group I belong to.
I am not sure how it displays only the support group. Below is the dictionary.
What I need is to only display the support group then add "active=true" because I only want group that are in active. Any idea how to do this?
Thank you for your time and assistance.
Jorge