• Community
  • Questions
  • How to allow only to issues with subtask to transition from one state to another?

How to allow only to issues with subtask to transition from one state to another?


I have this workflow:

Open > Design > Development > Testing > Testing UAT > Closed

You can only close an issue when the issue is in Testing UAT. But I allow to create subtask, and in order to close the issue parent I had to create two transitions from "Design" and "Development" to "Closed".

I need help with two things:

1) I want to disable the issue parent from closing until his subtask are closed.

2) I want to make available the transition Design > Closed and Development > Closed only for issues with subtask that are already closed.

Here it is an image of my workflow


Cheers, Mage

2 answers

1 vote

There's a condition for "only allow a transition if all subtasks are in status I choose" which will do that. I think it's in the core, but it might be in the Jira Toolkit or Jira Suite utilities

That can be configured to answer both 1 and 2 (I'm not 100% sure I've quite understood q2 though)

Hi Nic,

I've changed the description of point (2) and I've attached the image of my workflow.

I want to use the red transitions are only for issues with subtask. Why?

Because the user creates subtask in Desing or Development, and then the user moves foward the subtask till Closed. And when the last subtask get to Closed, the system asks my if I want to closed the issue parent. For that I need the red transitions, because the issue parent won't be going throw the other states because the subtask did that.

I hope this helps to understand what I ment.

Thanks a lot for your answer.

Cheers, Mage

I've tried it and It works for issues with subtask.

But the problem I had it with issues without subtask. This issues can use the red transitions, and I don't want them to use it.

Ah, I apologise, I didn't see that case at all.

Yes, I think you're a bit stuck. It's a doddle in some of the Jira systems I look after - we have a plugin that provides a number-of-subtasks field, so we can say "if #subtasks < 1, block it", but I don't know if you can do this with off-the-shelf Jira, or even with the main plugins I mentioned.

That's exactly what that "block transition if subtasks are in X" condition can do

Ok Nic, thanks a lot! :D

Hi Majo, maybe Script Runner has what you are looking for. You can use the Allow the transition if this query matches a JQL query or maybe the All sub-tasks must be resolved condition, altought maybe you will need to do some coding you can take a look at it, it's a free plugin.

Check here what you can do:


Hi Ramiro,

Thanks for the suggestion, I'll try it these days.

Cheers, Mage

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

168 views 12 3
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