Identifying work items which have been released via VSTS API

て烟熏妆下的殇ゞ 提交于 2021-02-08 07:52:40

问题


Trying to determine which VSTS Work Items have been released to a given Environment (production). Ideally looking for a Service Hook to tell me when work items are deployed so we can keep the rest of the company updated on when items are deployed.

Cannot find this available in the VSTS API.

In the VSTS UI under the Release Summary tab it shows linked Work Items. However linked Work Items don't appear to be available via the API. VSTS API docs for Get Release

In the VSTS UI under each Work Item, it shows when it was integrated into a build, however not when that build has been released.

Any ideas?


回答1:


For your question:

Ideally looking for a Service Hook to tell me when work items are deployed so we can keep the rest of the company updated on when items are deployed.

The deployed work items information is already included in the Release Deployment Service Hooks as below: So you just need to create a Service Hook for Release deployment completed event and create a web service to listen on this.




回答2:


There's a REST API, you're just looking in the wrong place for it. BTW, you can find this stuff easily by looking at the network traffic in the F12 tools in your browser.

https://<accountUrl>/<Project>/_apis/Release/releases/<ReleaseID>/workitems?baseReleaseId=<ReleaseToCompareAgainst>&%24top=250



来源:https://stackoverflow.com/questions/51839930/identifying-work-items-which-have-been-released-via-vsts-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!