How to do a condition in transition and for previous transitions? Edited

Hi!
I've done the instruction (https://confluence.atlassian.com/jirakb/how-to-create-manager-approval-for-multiple-departments-in-a-workflow-744325603.html), but I need a condition for the "Approved" transition, for example, for going to the next status, department A and department B has to do a transition. Other words we need two approvals: of the department A and of the department B, and only then can the fallowing operations take a place.

Help me, please, to resolve the task.
Best wishes!
Olga!

1 answer

1 votes

Hi Olga,

I understand you are following that KB, however I think there might be a misconception over what this KB is suggesting.  The steps in that KB are only suggesting to set a single workflow condition for each transition.  If you apply two group membership conditions to the same transition, then only users that exist in both group A and group B could approve this by transitioning the issue.  I don't think that is what you want here if I understand correctly.  Instead I think that you are first wanting group A to approve the issue, and then later someone from Group B to also approve.  In the KB I believe that step four explains this need for separate transitions for different groups:

Add a condition to new transition, Department A approval,  "Only users in group User Dept A can execute this transition". Configure a similar condition for each new transition created to associate it with the user group. 

So in your case, I think you would need to create an additional status to the workflow, and then create separate conditions for each of those two separate approval phases.   Your workflow might look something like this:

work111.png

This way you can have a separate conditions on the transitions 'approve2' and 'step2'.   These can be then be for users in different groups. 

I hope this helps,

Andy

Hi Andrew!

Thank you very much for your answer! I used your answer and your logic and it helped me very much to resolve the task.

For other similar task I've done other option of WF and maybe someone will need it, because of that I would like to share it in this topic:

Снимок 1.PNGСнимок 2.PNGСнимок 3.PNGFor another approvals I used the same logic and in the end:Снимок 4.PNGBest regards,

Olga!

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 ...

3,110 views 13 19
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