Group Approvals not Generated

Cirrus
Kilo Sage

Not sure where to start with this as our change process is already heavily customised.

Basically, I have a requirement to show the assignment group in the related list of change approvers. All changes basically go through a peer group approval, followed by support group approval based on the CI affected, and if certain conditions are met, the change management group. 

Although all groups are asked to approve as expected by the workflow, as far as I can see only the Change Manager approval is generating a GAPVR Group Approval record and thus showing in the related list of approvers.

How can I get the other approvers to generate a group approval record 

 

Thanks

1 ACCEPTED SOLUTION

Cirrus
Kilo Sage

Thanks Vinoth, looking at the workflow we have group approvals configured under approval user, so I will investigate this further

 

View solution in original post

4 REPLIES 4

vinothkumar
Tera Guru

Check the workflow that is running on change_request table and you have to check for the approval group activity. Whatever configured in approval group will create group approval and other may be configured as approval user activity and in that group might got selected.

Cirrus
Kilo Sage

Thanks Vinoth, looking at the workflow we have group approvals configured under approval user, so I will investigate this further

 

vinothkumar
Tera Guru

You are welcome. Please mark my answer as helpful or correct

Cirrus
Kilo Sage

So Vinoth is correct in his diagnosis of the problem. So my next question - is there any way of creating a 'group approval' from our customization? Let me expand:

When a user raises a change, the senior members of that group must peer approve. This is done using the following script within an Approver User activity (I assume because of the way we designate the change approvers within the group, which is done through an Active Directory import of a nested manager group within the support group, which could contain one or more managers)

// Approvers are Generated from the Team Leads List ( Managers ) on the group


var answer = [];
var list = current.assignment_group.u_managers.toString();
var listArr = list.split(',');
for (var i=0;i<listArr.length;++i) {
var user = new GlideRecord('sys_user');
user.addQuery('sys_id',listArr[i]);
user.query();
if(user.next()){
answer.push(user.sys_id.toString());
}
}

Could this code be amended to produce a GAPRV record for current.assignment_group simultaneously, but without the whole group being asked to approve? Or is there a complete disjoint between user and group approver activity? If I create a group approval, it pulls through all members of the group onto the approval list, and any one of them can approve the change regardless of whether they have the change approver role or not - not ideal, and I think one of the reasons which prompted the above.

Please note that we are not looking to make changes to our current process, so if this likely to be complex or impossible without that, then just say so