Forums

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

Different subtask with conditions at different stages of parent workflow?

Jon Lewthwaite
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2024
  1. I have a workflow with 8 stages and 7 transitions. Let’s call stage 1, stage 2, stage 3 etc and transition 1 is from stage 1 to stage 2 
  2. I have created a number of Subtasks to the parent. Suntask1, subtask2 and subtaka3
  3. i want to be able to stop the parent issue from completing a transition unless certain subtasks have been completed. Such that, I cannot move from stage 1 to stage 2 unless Subtask1 and subtask2 = done (but I don’t care here about subtask 3). I cannot then move between stage 2 and stage 3 until subtask3 =done
  4. i wanted to do this by editing each transition and setting ‘conditions’ sun-task block =done

is this the correct way and/or could this be setup? 
I want to be able to clone the parent and subtasks many times but to follow the same parent workflow with the conditions on the subtasks…

1 answer

2 votes
Pierre Ibrahim
Contributor
January 2, 2024

Hi @Jon Lewthwaite

Your strategy is what I would use as well, if you have the scriptrunner plugin, there's a function in the conditions tab of your workflow that is "All subtasks must be resolved" that would accomplish that for you.

If you have the JWT plugin installed, you can use the "Condition on Subtasks"

If you have neither the above plugins, I believe the "Sub-Task Blocking Condition" function is native to JIRA and can be used to accomplish this as well.

Cloning should work just fine as the clone would abide to the same workflow.

The only thing I'd do differently is instead of the condition on every transition, just add the condition on your Done/Cancelled transition on the parent issue type. Unless I'm misunderstanding your original question and you mean the parent can't be set to "In Progress" unless all subtasks are "In Progress", then on every transition is the way to go.

Thank you!

Jon Lewthwaite
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 4, 2024

Ah I don’t think we have scriptrunner etc. The way it’s set up means I need to request a Jira Admin to do the work for me as I’m not allowed to modify the workflow or conditions myself.

I’ve tried to explain to them what I want but they don’t seem to get it which was why I’m wondering if I was doing the right thing! Thank you for your update - very helpful! 

Like Pierre Ibrahim likes this

Suggest an answer

Log in or Sign up to answer