Use case
We want to implement an automatic transition for parent issues. Once all subtasks are completed, the system should automatically move the parent issue to Done.
Configuration steps
Transition of the parent issue to the status Done
To transition the parent issue we utilize the Transition issue post function. As a Target issue we choose Parent of current issue. We select Transition to status as the Mode*, and the status to be transitioned to is Done.
Ensure transition only when subtasks are done
To ensure the condition is correct we configure an additional Conditional execution*. We use the filterByStatus
() function to compare the subtasks of a parent issue with those that have been completed. The subtasks(%{parent.key})
function retrieves all subtasks linked to the parent issue. Using the filterByStatus()
function, we narrow this list to include only those subtasks with the status Done. By comparing the filtered list with the full list of subtasks, the system verifies whether every subtask has been completed.
filterByStatus(subtasks(%{parent.key}), "Done") = subtasks(%{parent.key})
Related examples
INTERMEDIATE BEGINNER BEGINNER BEGINNER BEGINNER BEGINNERUse case JWT feature Workflow function Parser functions Complexity Auto-transition when related issues are in a specific status Transition issue linkedIssues() Escalate an issue if it is being raised with a "Blocker" priority Transition issue Fast-track transition issues assigned to the project lead Transition issue Start progress on an issue immediately after creation Transition issue Start progress on the parent issue Transition issue Transition parent issue to another status Transition issue filterByStatus() subtasks()
If you still have questions, feel free to refer to our support team.