Home > front end >  How not to create duplicates in a task "Create work item" in azure devops
How not to create duplicates in a task "Create work item" in azure devops

Time:03-10

I have pipeline in azure devops. In this pipeline i use task "Create work item", how i can not to create duplicates with the same name ? I use classic editor

CodePudding user response:

You can add to duplicates parametr this value "System.Title" and duplicates not creates

CodePudding user response:

How not to create duplicates in a task "Create work item" in azure devops

You could define an auto-incrementing variable for the name of the workitem.

In this case, the name of each created workitem will be accompanied by an auto-increment variable to distinguish it:

InternalWorkItemID 1

semanticWorkItemID $[counter(variables['InternalWorkItemID'], 0)]

enter image description here

enter image description here

The test result:

enter image description here

Besides, we could also define the 2022310 as variable and enable Settable at queue time

enter image description here

enter image description here

We could update the WorkItemTitle at queue the pipeline:

enter image description here

In this case, even if we forget to modify the name of the workitem, there is still a self-increment to distinguish.

  • Related