Forums

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

How to prevent a transition if parent has subtasks

Molly Hopper
Contributor
February 6, 2025

I would like to build a rule into my workflow that would prevent the parent issue (service request) from using a specific transition if any subtasks are present. 

I have found ways to prevent based on the status of a subtask, but I'm looking more generically for if they are present or not. 

3 answers

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 7, 2025

Hi @Molly Hopper ,

Welcome to the Atlassian Community! If the built-in Sub-Task Blocking Condition doesn’t work for your use case, you may need a third-party app. There are several options on the Atlassian Marketplace that provide Jira Expression-based solutions.

I’m from Forgappify, and we developed Ultimate Condition, a feature of the Workflow Building Blocks for Jira app. It eliminates the need to learn Jira Expressions by offering a simple UI that builds the expression for you. In your case, setting it up would be as easy as the following:

non_subtasks_allowed.png

I hope it will help,

Cheers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 7, 2025

Hi @Molly Hopper 

Welcome to the community.

You can use the condition Sub-Task Blocking Condition. This condition blocks the parent if sub-tasks are present.

 

Otherwise with other requirements you will require an app as @Mikael Sandberg mentions.

Suggestions are:

  • JMWE
  • JSU
  • JWT
0 votes
Mikael Sandberg
Community Champion
February 6, 2025

Hi @Molly Hopper,

Welcome to Atlassian Community!

You would need an app from the Marketplace in order to do this. I have used Scriptrunner in the past to do custom conditions, but there are other apps that can do that too like Custom Workflow Condition, Validator & Postfunctions and Power Scripts to mention a few.

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