In VSTS, can I specify the new state of a linked work item when a pull request is approved?

时间:2018-03-25 21:01:43

标签: azure-devops

Once the PR is approved I want to automatically advance the state of the linked work item, but I don't want it to be marked as "complete". Instead I'd like the work item state to be "ready for testing" (still in progress).

2 个答案:

答案 0 :(得分:1)

目前,工作项状态只能在合并PR时更改为完成。

并且有一个用户语音Customize Work Item State after PR is closed表明此功能,您可以投票和跟进。

目前的解决方法是通过CI构建(完成PR后)更改链接的工作项。详细工作流程如下:

  • 添加CI构建以在目标分支具有新提交后自动触发。并添加PowerShell任务以REST API更新链接的工作项状态。
  • PR完成后,将自动触发CI构建。并且将更新链接的工作项状态。

答案 1 :(得分:0)