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.
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.
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...
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.
Let's say you have a flow that goes open -> approvals -> closed, but needs approval from someone in the blue team and red team.
You will need two flag fields (I usually set them up to record the current person who approves so I can report on it easily later, without digging through the history)
1. With one approval status:
2. With two status
Have a workflow that goes open -> approval 1 -> approval 2 -> closed
You can see the second one needs more work, but it has a massive advantage over the first - you can see which issues are waiting for one approval or two without adding any fields to your searches.
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events