I need to allow multiple managers to approve an issue at the same time

I have two managers that need to approve an issue to transition to the next step; I am able to get two radio buttons to display:

"Request blue team manager approval"

"Request red team manager approval"

 

However when I click one of the buttons the issue automatically transitions.  I'd like to make my issue stay in the same status until BOTH managers click their respective buttons.  Also, the ordering of who approves first is unimportant, rather, the ability for either manager to approve in any order as long as both of them have approved.  Having one approve, transition, then another approve is not a good workaround.

1 answer

1 votes

I don't think you can do it without either an intermediate status, or code that can execute extra transitions when certain conditions are met.

 

How do I code the transition to wait  until both buttons have been clicked? What language do I need for a development resource internally?

A bit of Java would do it, but there are off-the-shelf add-ons that can do auto-transition too - the one I'm familiar with is the Script Runner.

It can be done with a couple of flag fields and some clever conditions on workflow and no code, but that does need an intermediate status.

Steven Behnke Community Champion Mar 18, 2016

As Nic indicates, I would do this purely with Update Custom Field post-functions and Value Field conditions. Knowing that fields that are not on the edit screen cannot be edited manually...

You can do this in 4 transitions off the top of my head...

  • Approval Transition A is visible to manager A if Approval B is not checked and updates Approval A field to checked
  • Approval Transition B is visible to manager B if Approval A is not checked and updates Approval B field to checked
  • Approval Transition C is visible to manager B if Approval A is already checked, updates Approval B to checked, and transitions to next status
  • Approval Transition D is visible to manager A if Approval B is already checked, updates Approval A to checked, and transitions to next status

If you need more detail or workflow, many people use a similar method but with Sub-Tasks.

 

You could also perform this logic in Script Runner or other scripting add-ons.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

773 views 5 17
Read article

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