Create a parent story for orphan tasks in Azure DevOps
When a Task is created with no parent, create a User Story, link it as the parent, and copy Area and Iteration from the task in Azure DevOps.
You'll set the parent work item type and title before enabling this automation. This ensures that the created parent item meets your project's specific requirements.
Prerequisite: Install Automations App on your Azure DevOps organization
Trigger — Work Item Created
This step triggers the automation when a new Task is created in the project. It specifically listens for the creation of Task work items.
Configured in this template
- Work item types: Task
You can customize
- Change the work item type to include other types if needed, such as Bug or Feature.
Condition — Work item fields
This condition checks if the created Task has no parent. It ensures that the automation proceeds only when the Task is an orphan.
Configured in this template
- Check: This work item
- Require: All of Items
- Field conditions: (none)
- Match logic: All conditions must match (AND)
- Related work item conditions: parent: none exist
You can customize
- Add additional field conditions to further refine when this automation should run.
Action — Create Work Item
This action creates a new work item, such as a User Story, and links it as the parent of the orphan Task. It copies the Area and Iteration from the Task to the new parent item.
Configured in this template
- Work item type: all (no filter)
- Link to trigger: Parent of trigger
- Field values:
- - Title =
{trigger.Title} - - Area Path =
{trigger.AreaPath} - - Iteration Path =
{trigger.IterationPath}
You can customize
- Set a specific work item type for the parent, like 'Product Backlog Item'.
- Modify the title to include additional context or identifiers.
Full automation
Common questions
How do I create a parent story for orphan tasks in Azure DevOps?
What fields must be set before enabling this automation?
Can I change the work item type for the parent?
How can I test this automation?
Can I add additional conditions to this automation?
Visual Studio Marketplace
Automations
Automate Azure DevOps workflows with triggers, actions, conditions, and scheduled rules.