VSTS: How to get all linked work items since last successful release to production?

£可爱£侵袭症+ 提交于 2019-12-06 09:38:00

Meanwhile I've found a workaround for my problem. As of now the VSTS REST Api (version 1.0) does not support querying release or build information. However, it knows pull requests: https://www.visualstudio.com/integrate/api/git/pull-requests and work items: https://www.visualstudio.com/integrate/api/wit/work-items

A pre-condition for this to work is that you link your pull requests with your work items. The moment a pull request gets merged into master, it usually mentions linked work items in the commit message. This is, how I currently can resolve all work items linked to these (completed) pull requests that have been merged between two dates (e.g. last release and now).

It's not the best solution but it works.

In version 5.0 preview of the API it seems to now support "Get Work Items Between Builds". Note that the fromBuildId and toBuildId parameters should be populated with the buildId, not the build number displayed on the UI. You can get the buildId by navigating to a specific build, and copying the buildId out of the URL.

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