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
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events