Forums

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

Prevent status change until sub-tasks of a certain type are "done"

Matt Noe
Contributor
October 26, 2023

I'm trying to solve a problem in one of our projects. Our project involves many sub-task types used simultaneously under a base-level issue/story.  My goal is to establish a rule that will prevent a status change on the base-level issue until all the sub-tasks of a specific type are in a "done" status category but will allow other sub-task types to be in varying status categories.  I've been able to do this if ALL sub-tasks are "done" but not for just specific type(s).

Our instance does have scriptrunner.  Are there any recommendations to solve our issue, or does anyone have experience doing the same?

1 answer

0 votes
Dag Atle Stenstad
Community Champion
November 6, 2023

Hi Mat! Here's a proposed solution.

1. Create a custom field named "Can Transition" with a default value of "True."

2. In the workflow for the "base-level issue," create a condition for all transitions that checks whether the value in the "Can Transition" field is "True."

2023_11_10_08_25_14_Window.png

3. Then, create a Jira Automate rule that sets the field to "False" if a new sub-task is created.

2.png

4. Create another rule that sets the field to "True" when all sub-tasks are closed.

 

3.png

 

Remember to set the correct value for the "Can Transition" field on existing base-level issues.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events