Add Assignment Group Manager to Approval WorkFlow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 01:21 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 01:34 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 01:38 PM
I think this is what you want, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 01:46 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 01:49 PM
You can click on Fields, then you will see the list of all fields. You can click on Assignment Group then select Manager.