We currently have an automation that closes work items on selected projects where the work item was created 2 weeks or prior in the past, and the team field is empty.
We need to enhance the automation to check for open subtasks on the work item, and close them as well.
Hi @Suraj ,
To include subtask closure, add a Branch Rule / Related Issues → Sub-tasks after the already existing trigger and conditions, but before the action that closes the parent work item.
Within this branch, add a condition to check for open subtask, then add action to transition it to the desired closed status. Once all subtasks have been processed, the rule can continue with the existing action to close the parent work item.
@Suraj, the branch approach already posted is right. Two details decide whether it closes every subtask or just some:
Keep the subtask branch before the parent-close action, that also satisfies any "all sub-tasks resolved" validator on the parent. Branch on sub-tasks.
If you share your subtask statuses I'll tell you whether one transition covers them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.