- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 08:46 AM
Hi,
When I use the Assignment Group field on incident form, it shows the list of groups and by expanding particular group we can select a member.
But assigned to filed is blank. Can we populate/ set the value for 'assigned to' field as well based on the member selected from assignment group filed.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 01:54 AM
Client may have the question: Then why there is option to expand the group and click on user name.
I think this could be one possible reason -
"This functionality might be to allow user to have the visibility to the group members while they selecting group"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 09:22 AM
you can try with advanced reference qualifier on assiged_to field,
1. Create a Script Include:
var assignedToList = Class.create();
assignedToList.prototype = {
initialize: function() {
},
AssignTo:function() {
var user = [];
var grp = new GlideRecord('sys_user_grmember');
grp.addQuery('group', current.assignment_group);
grp.query();
while(grp.next())
user.push(grp.user.toString());
return 'sys_idIN' + user;
},
type: 'assignedToList'
};
2. Configure the assigned_to dictionary
3. In advanced qualifier have a JavaScript call:
javascript: new assignedToList().AssignTo()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 10:45 AM
Thanks Shishir.
But my question is different. Assignment group look up shows group hierarchy where we can expand it and click on any member. It updates the Assignment group with group name but it wont set the value for assigned to field value. We have to select it manually.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 10:54 AM
Interesting and tricky one, let me explore more if we can achieve. but was thinking how does assigned_to field would know which user are you selecting in assignment_group field since it will populate only the record (sys_id) of assignment group whatever user you select.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 01:42 AM
Thanks Shishir, Let me know if you make any progress on this.
Regards,
Rafi