
Options
- 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.
Labels:
1 ACCEPTED SOLUTION
Options
- 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(",")
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 11:08 PM
Hi
Or you can call this below script include also :-
function getMySpecificGroups(){
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery("user", gs.getUserID());
gr.addQuery("group.active", true);
gr.query();
var array = [];
while (gr.next()) {
array.push(gr.getValue('group'));
}
return array;
}