Assigned To value is blank

mdrafi
Mega Expert

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.

1 ACCEPTED SOLUTION

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"


View solution in original post

8 REPLIES 8

Shishir Srivast
Mega Sage

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


find_real_file.png


3. In advanced qualifier have a JavaScript call:


javascript: new assignedToList().AssignTo()


find_real_file.png


mdrafi
Mega Expert

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.


find_real_file.png




find_real_file.png


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.


Thanks Shishir, Let me know if you make any progress on this.



Regards,


Rafi