Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Majority Approval Automation

Arlene OConnor
Contributor
January 24, 2023

So I'm trying to create an approval automation for this JSM project and keep running into this issue.

Currently, there are only three members on my team, but during testing, I discovered that if any one member disapproves a request, the whole ticket is "retired" even if the other two members vote to approve.  This will be problematic as our team continues to grow.

I have been unable to find in the support channels any assistance on how to make sure that as long as a majority of approvals vote "yes/approve", then the issue proceeds in the process.  Is there any way to do this?

2 answers

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Champion
January 24, 2023

You could do that with automation. What you would have to do is update the workflow so that approve/decline is not automatically changing the status based on the decision. Then have the automation trigger on Approval completed that checks via web request to see if you have majority approval, and if so transition the request to the approved status.

Arlene OConnor
Contributor
January 24, 2023

Thank you for your response, though unfortunately, that has created more questions than answers.  Mostly because I am unfamiliar with this process of running a web request.  

Mikael Sandberg
Community Champion
January 24, 2023

So the web request allows you to make a REST API call, in this case that would be to go the issue which includes the approvers and their decision. You could then use that to figure out the how many have approved the request. Your other option would be to update a field every time someone approves and compare that number to the number of approvers you have in the Approvers field. I you have reached the majority approval needed then transition the issue. You can find more information about Jira automations here.

Arlene OConnor
Contributor
January 24, 2023

Thanks for the assistance, I'm currently reading up on this now.

1 vote
Parsa Shiva
Contributor
February 7, 2023

Hello Arlene,
Hope you are well!

Alternatively you can use the Approval Path for jira plugin, there is easy configurations and it's quiet reliable, you can resolve that issue using the app.

Best,
Parsa

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events