[英]How not to create duplicates in a task "Create work item" in azure devops
I have pipeline in azure devops.我在 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
我用经典编辑器
How not to create duplicates in a task "Create work item" in azure devops
如何不在 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)]
The test result:测试结果:
Besides, we could also define the 2022310 as variable and enable Settable at queue time :此外,我们还可以将2022310定义为变量,并在排队时启用Settable :
We could update the WorkItemTitle
at queue the pipeline:我们可以在管道队列中更新
WorkItemTitle
:
In this case , even if we forget to modify the name of the workitem, there is still a self-increment to distinguish.在这种情况下,即使我们忘记修改工作项的名称,仍然有一个自增来区分。
You can add to duplicates parametr this value "System.Title" and duplicates not creates您可以将此值“System.Title”添加到重复参数中,并且不会创建重复项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.