- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 11:52 AM
when we select user it showing all users but i want users from one assignment group
creating variable (reference) in catalog item
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 12:33 PM - edited 09-25-2023 12:42 PM
Hi @Purushotham1992 ,
Please try it like this
Once u map this n navigate to your form there is good chance u might only see Sys IDs in the search bar of that field. U can just click on the search icon right click on the column - configure layout move sys id towards left & bring users towards right bucket. You should be able to see the Users properly
Please mark my answer helpful & accepted if it helps you resolve your query.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 11:58 AM
Hi @Purushotham1992 ,
You can put one simple condition in your reference qualifier stating assignment group is to your desired assignment group.
Please mark my answer helpful & accepted if it helps you resolve your issue.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 12:02 PM
can not find assignment group in dropdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 12:16 PM
Hi @Purushotham1992 ,
- Write below script in script include
getUsersByAssignmentGroup: function() {
var userGr = new GlideRecord('sys_user_grmember');
userGr.addQuery('group', "sys_id of assignment group");
userGr.query(); - var arr=[];
while (userGr.next()){
arr.push(userGr.user);return arr
}
};
User variable add below script in reference specification select advanced:
javascript:new scriptinclude name().getscriptincludefunctionname().
Please mark it helpful if it works.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 12:33 PM - edited 09-25-2023 12:42 PM
Hi @Purushotham1992 ,
Please try it like this
Once u map this n navigate to your form there is good chance u might only see Sys IDs in the search bar of that field. U can just click on the search icon right click on the column - configure layout move sys id towards left & bring users towards right bucket. You should be able to see the Users properly
Please mark my answer helpful & accepted if it helps you resolve your query.
Thanks,
Danish