Add Assignment Group Manager to Approval WorkFlow

lonesoac01
Giga Guru

I want the retirement of a Standard Change Template to be approved by the Assignment Group Manager, but when I submit a retirement request, it is already passed the Assignment Group Manager Approval stage. What am I missing here?

 

lonesoac01_0-1723580453667.png

 

5 REPLIES 5

Najmuddin Mohd
Mega Sage

Hi @lonesoac01 ,

Can you tell how did you configure the Assignment group manager ? Any code you have written or selected the user directly.

Regards,
Najmuddin. 

I think this is what you want, right? 

lonesoac01_0-1723581528604.png

 

Hi @lonesoac01 ,

Can you remove what you have written in User and select the advanced checkbox and write the below script.


 

 

 

answer = [];
var userGroup = new GlideRecord('sys_user_group');
userGroup.addQuery('sys_id',current.assignment_group);
userGroup.query();

if(userGroup.next()){
answer.push(userGroup.manager);
}

 

 

 

Generally, approvals are skipped when any code is wrong or the assignment group does not have a manager (it is empty.)


If this information helps, kindly mark it as Helpful and Accept the solution.

Regards,
Najmuddin.

You can click on Fields, then you will see the list of all fields. You can click on Assignment Group then select Manager.