Reputation: 131
I need to write a rule to copy a field's value to child work item(User Story) from parent work item(Epic) in Azure DevOps. But I cannot find a way using Work item's rule settings in Process.
How can I set the field in work item when parent is set.
Upvotes: 0
Views: 2183
Reputation: 30372
There isn't a built-in feature can pass value between different work items. The rule only applies to the same work item. For example, we can set a copy rule to copy the value from one filed to another within the same work item.
See Rules and rule evaluation and Add a rule to a work item type for details.
The only way I can think of is writing a script by calling the Get Work Item REST API to get the value of the filed from parent work item, then calling the Work Items - Update REST API to update the child work item. Then setup a trigger to run the scripts once the parent work item is updated.
Upvotes: 1