JMWE post function "Transition Parent Issue Post-function" and Condition Execution All subtask Done

Fiqi Ferdiansyah July 11, 2023

hi community,

i have a problem, on main ticket and subtask, in JMWE post function "Transition Parent Issue Post-function"
where in 1 ticket, when I have more than 1 subtask, the main ticket doesn't go to the final status which is "Passed"

is there a groovy script in Conditional execution to create a condition where if all the subtasks have been done, the main ticket is also done?

Can someone help with the syntax for the Conditional execution in JMWE ?. Thank you 

1 answer

1 accepted

0 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.
July 12, 2023

Hi @Fiqi Ferdiansyah 

you can use something like this:

parentIssue.subTaskObjects.every{it.key == issue.key || it.get("status").name == "Closed"}

You'll just need to replace "Closed" with the name of the "done" status of sub-tasks. 

Fiqi Ferdiansyah July 12, 2023

hi @David Fischer 


yes it works, thank you very much for the advice given

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events