Allow transition only if number of votes is equal to custom field value Edited

I am designing a workflow that requires each user in a custom-field-specified group (meaning the number of users in the group will change depending on the issue) to "approve" an issue before it transitions to the next status. 

Note: These are not proper Approvals (as given by JIRA) because as far as I can tell that doesn't work for multiple approvals on one status. 

I would like to achieve this with votes. I'd like a transition called "Approve Request" to appear for an issue if and only if the number of votes for the issue is equal to the number of users in "Needs approval from" group.

I have it set so that only the Reporter and "Needs approval from" may view issues, and therefore only the latter may vote on them. 

Is it possible to get the number of votes on an issue? Via a custom script condition or otherwise.

Thanks!

 

 

1 answer

1 votes
Alex Christensen Community Champion Apr 21, 2017

You'll probably need a custom script condition for this. I think you could use VoteManager to get the users who have voted for a particular issue, but I haven't tried it personally since we don't use the voting functionality in our instance of JIRA.

Alex Christensen Community Champion Apr 21, 2017

To add to this, you could probably use GroupManager to get the number of users within that user group you mentioned.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,863 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot