1

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?

Community
  • 1
  • 1
Marcus
  • 9,011
  • 10
  • 45
  • 65

2 Answers2

4

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

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
  • Where is the documentation for that? As far as I'm aware that endpoint is specific to the on-premises TFS only and not available as an endpoint for the hosted VSTS. https://learn.microsoft.com/en-us/rest/api/vsts/release/releases/get%20release?view=vsts-rest-4.1 – Marcus Aug 14 '18 at 15:22
  • Thanks - this works, even though it isn't documented. – Marcus Aug 15 '18 at 08:59
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: enter image description here So you just need to create a Service Hook for Release deployment completed event and create a web service to listen on this.

Eddie Chen - MSFT
  • 29,708
  • 2
  • 46
  • 60