Assigned to users Should be dependent on Assignment Group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 10:37 PM
Hi All,
The sc_task screen has two fields, Assignment Group and Assigned_To. I want to display users in the Assigned_To search based on the group selected in Assigned Groups.
Setting Assignment group in the Dependent Field of Assigned_To did not work.
I tried the following questions but it didn't work.
Please tell me how to do it.
thanks all
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 12:21 AM
Excuse me. I don't think the catalog item is relevant. I want to apply to sc_task table.
Also, the reference qualifier
Is the red sauce correct?
javascript: new UserGroup (). GetMembers (current.variables.asn_grp);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 12:49 AM
Hi
If it is not a Catalog item variable then using current.variables is wrong. just try with this once -
javascript:new UserGroup().GetMembers(current.assignment_group);
Regards
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 01:13 AM
thank you Omkar Mone.
I tried, but users other than the group are also displayed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 01:15 AM
Hi
your function name is wrong from what you have in Script include, can you try with this -
javascript:new UserGroup().getMembers(current.assignment_group);
Regards
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 01:27 AM
Corrected the function name, but the result was the same as before.