Reputation: 1388
I see there are plenty of options for creating custom rules in Azure DevOps, but I don't see one (or perhaps I'm not interpreting it correctly), that handles this scenario.
I have an Epic. That Epic has a state of "In Progress".
That Epic has 10 user stories as linked child items. Each Story has a state as well.
Can I create a rule that when all 10 of those stories stages reach "Done", then the parent Epic will automatically change state to "Done"?
Any thoughts on how to do this?
Upvotes: 4
Views: 5962
Reputation: 11
Came across this and wanted to add a comment to the prior answer but don't contribute enough, sorry.
Rules must be turned on per team per backlog level. Select "Backlogs" in the "Boards" panel, then the appropriate team and team's backlog level. The Settings wheel on this screen will pull up "Team Settings". On the left, under "Automation/Rules", you can toggle on or off to activate a parent when at least one child is activated, and/or to resolve/complete a parent work item when all children are completed.
Official MS documentation is here: https://learn.microsoft.com/en-us/azure/devops/release-notes/2024/sprint-233-update#team-automation-rules-is-generally-available
Hope this helps somebody!
Upvotes: 1
Reputation: 5222
As of this time, however, automate state transitions of parent work items by Azure DevOps process rules is not supported.
But you can add a web hook and use the code and configuration provided in the Automate State Transitions GitHub project.
Click this link for detailed information about setting up the project.
Upvotes: 2