Group Approval restrict to 2 members
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2016 09:47 AM
When approval is set to a Group, I want only two member to approve.
What happens is, when one member approves then the rest are set to no longer required.
Under group approval script, wait for condition is set to a script.
Any ideas?
Thanks,
Vinitha.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2016 10:31 AM
Wait for condition is script only yaar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2021 09:35 AM
Hey Vinitha,
the above given script is for the group approval. so it will wait for 2 groups to approve.( but we just need 2 members)
1> Basically In workflow, you need keep "Approval-user" activity instead of "Approval- Group",
2> just add all the members in the approvers field.
3> add a condition script
if (counts.approved > 1) {
answer='approved';
}
this will work.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2016 10:54 AM
Try with Approval -user activity once.. I don't think of any other issue..
Thanks
Rahul Kathuria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2016 11:24 AM
Don't forget to mark the answer correct if this is helpful:)
Thanks
Rahul Kathuria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2016 10:06 AM
am using this script. But still does not work..
var id;
var group;
for(id in groups)
{
group = groups[id];
}
var cab_approved = group.approved;
var cab_rejected = group.rejected;
var appr_needed = 2;
if (cab_rejected > 0) { answer = 'rejected'; }
if (cab_approved >= appr_needed) { answer = 'approved'; }