Custom condition is not working on group Approvals

Achu1
Mega Expert

Hello

 

I added a custom condition 'conditionally approved' on Group Approvals. It is working on User Approvals But its not moving forward to other activity in Group Approvals. I need this to work in Group approvals as I need to get an approval from each group

I did all the changes as It mentioned in this url -https://old.wiki/index.php/Custom_Transitions_for_the_Approval_-_User_Activity 

Can someone please help me on this.

Thanks in advance

1 ACCEPTED SOLUTION

Achu1
Mega Expert

Scrip to make the new condition work for a Approval -Group activity:

 


for (var id in groups) {
var group = groups[id];
/*if(groups[id].approvalIDs['conditionally_approved'])
{
answer ='conditionally_approved';
}
else */

if(group.approved>1) {
answer ='approved';
}
else if(group.rejected>0) {
answer ='rejected';
}
}

View solution in original post

5 REPLIES 5

Achu1
Mega Expert

Scrip to make the new condition work for a Approval -Group activity:

 


for (var id in groups) {
var group = groups[id];
/*if(groups[id].approvalIDs['conditionally_approved'])
{
answer ='conditionally_approved';
}
else */

if(group.approved>1) {
answer ='approved';
}
else if(group.rejected>0) {
answer ='rejected';
}
}