Forums

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

Prevent transition of parent ticket if subtasks with a specific summary are open

Christy Kennedy
Contributor
August 15, 2024

I would like to add a condition to a transition in my workflow. My issue should only transition if all subtasks which include "Dept Approval" in the summary are in either the 'Done' or 'Canceled' status.

I assume this will need to be done via JMWE, but I am unfamiliar with the syntax and would need help writing this condition.

1 answer

1 accepted

2 votes
Answer accepted
David Fischer
Community Champion
August 15, 2024

Hi @Christy Kennedy 

you can add a Build-your-own Validator to the transition with a Jira expression like this:

issue.subtasks.every(subtask => !subtask.summary.includes("Dept Approval") || subtask.status.name == "Done" || subtask.status.name == "Canceled")

 

Christy Kennedy
Contributor
August 15, 2024

Hi David - this worked perfectly! Thank you :) 

Suggest an answer

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

Atlassian Community Events