Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Upcoming Jira Events