- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2019 02:06 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2019 07:07 AM
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';
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2019 07:07 AM
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';
}
}