Context
I want to create a Power-Automate flow that automatically creates a sub-task in Azure DevOps when the Effort
of a PBI is set.
When the Effort
field goes from blank to a positive value, the task should be added (using the newly set Effort
value as the task's Original Estimate
and Remaining Work
).
I managed to create a flow that does that using When a work item is update
trigger.
Problem
The flow runs too often (whenever the work item changes, as long as the Effort
is > 0).
Question
What would be the best way to ensure this flow runs only once per PBI?
Thoughts
- Perhaps check for the presence of child tasks?
- Perhaps set a hidden property when adding the task the first time and check that property afterwards?