Close parent when all children are completed in Azure DevOps
When a child moves to Completed (Closed or Done), if all siblings are also Completed, set the parent to Completed for its work item type in Azure DevOps.
Use this template to maintain accurate project tracking by updating parent work items based on the status of their child items. This helps in managing dependencies and ensuring that project progress is reflected accurately.
Prerequisite: Install Automations App on your Azure DevOps organization
Trigger — Work Item Update
This trigger activates when a work item's field changes, specifically monitoring the State field. It does not include changes to links or comments.
Configured in this template
- Work item types: all (no filter)
- Changed fields (optional filter): State
You can customize
- Filter specific work item types if only certain types should trigger the automation.
- Add additional fields to monitor if other changes should trigger the flow.
Condition — Work item fields
This condition checks if the current work item's State is marked as Completed. It also verifies that all sibling work items have the same Completed status.
Configured in this template
- Check: This work item
- Require: All of Items
- Field conditions: State = state category Completed (Closed, Done, …)
- Match logic: All conditions must match (AND)
- Related work item conditions:
- - siblings: all match the nested conditions
- - State = state category Completed (Closed, Done, …)
You can customize
- Adjust the State condition to include additional states if your workflow uses custom state categories.
- Modify the logic to include or exclude certain sibling conditions based on project needs.
Action — Update Work Item
This action updates the parent work item's State to Completed once all child work items meet the completion criteria.
Configured in this template
- Work on: Parent of trigger
- Field updates: State = state category Completed (Closed, Done, …)
You can customize
- Change the field updates to reflect different state categories if your project uses custom states.
- Include additional field updates if other parent work item fields need to be changed.
Full automation
Common questions
How do I close parent when all children are completed in Azure DevOps?
What fields are required to enable this automation?
Can I change the work item types this automation applies to?
How can I test this automation?
Does this automation run on a schedule?
Visual Studio Marketplace
Automations
Automate Azure DevOps workflows with triggers, actions, conditions, and scheduled rules.