Get the assigned to based on assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 04:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 02:11 AM
can you share how are you calling the ref qualifier?
script looks fine.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 02:30 AM
Sure
Above is the script include.
REFERENCE QUALIFIER: javascript: new AssignmentGroups().groupMembers();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 02:31 AM
field is on which table?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 02:39 AM
incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 02:43 AM
but assigned_to field is on task table.
Did you create dictionary override for that field and include that in ref qualifier.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader