Blog Post

Azure PaaS Blog
3 MIN READ

Automate creation of work items in ADO and Export/Import workflow packages

Gayatri_Ram's avatar
Gayatri_Ram
Icon for Microsoft rankMicrosoft
Apr 16, 2025

This article would create multiple work items (tasks) for any specific User Story in a particular Backlog with a certain TAG value in Azure Devops. This article would also show steps to Export/Import a workflow package.

PART 1: Create multiple items for a parent User Story
This article uses Power Automate to do the same.
There are certain Pre-requisites that have to be fulfilled,
1. Be a part of an Azure Devops organization, have a project created along with some User Stories.
2. Have access to Power Automate to create workflows, and make sure you are able to add connections from Automate to ADO (Not to worry we would check that in the below steps)

Now go ahead and 
Follow the below steps to achieve the purpose.

Step1: Open power automate portal and Click on "My Flows" 
Link: https://make.powerautomate.com


Step2: Click on "New flow" and on "Automated cloud flow"


Step3: Choose an appropriate name and search for ADO trigger "When a work item is assigned"


Step4: Now with the Create option, it would depict invalid parameters like below


Next step would resolve this.

Step5: Click on the workflow item and following tab would appear, fill in the organization and other details

Now click on "Show All" options and fill in the Area Path, Iteration Path, Created By and Type 


Step6:  Now once the previous step is complete, click on the Plus symbol and select 'Add a condition' option

This condition is the part where we add the specific tag value and make sure that User stories with only these tag values are picked up and not all the others

Step7: Choose the left entry as 'Tags' 

and enter value here in this case , 'Custom' is used.

Intermediately keeping saving the workflow to avoid any losses.

Step8: Now lets add the work item details, Under the True condition (shown as below), click on plus symbol and 'Add an action'



 

Click on 'Azure Devops' - 'Create a work item'

Step 9: Click on the item, and fill in ADO details 


Important part is to click on ShowAll

 

and make sure the option Link URL is chosen correctly. 

Step 10:  Choose 'Hierarchy-Reverse' in the Link Type

 

Step 11: Now lets create parallel tasks for the parent User Story
Click 'Add a parallel branch', similar to the previous steps 
Click on 'Azure Devops' - 'Create a work item'

 

Step 12: Save and Test the workflow 

Now the workflow would create multiple 'tasks' for a User Story with a Tag value 'Custom'

Lets test the workflow

 


The run was successful, and the User story has child 'tasks'

 

All the tasks, have parent Area Path and Iteration Path


PART 2: In the second section of the document, lets learn about how to export a workflow and import the same. 

Step1: Click on Export and choose 'package(.zip)'


Step2: Enter details and click on 'Export'


Now the package would be downloaded to local


Importing exported package

Step3: Click on 'my flows' and Import option


Step4: The next would be as below


And once Import is clicked the workflow would get created from the exported package.

To conclude , we have tested the workflow for User Stories with a specific 'Tag' value . The workflow creates multiple tasks as child items. We also tested the export/import of workflow packages.







 









Updated Nov 11, 2024
Version 1.0
No CommentsBe the first to comment