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

Hi!

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

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:

https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts

Hi Ramiro,

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

Cheers, Mage

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 8 hours ago in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

40 views 1 2
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