Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSTS find workitems between two releases

To compare the related work items between the current release and a previous release I can use the following:

Associated workitems

Is there possible to create a query to get the same work items between two releases? Or alternatively the VSTS Rest API.

My reason for this is to create a list of Features > Stories > Tasks to fill the release notes. Using the above UI makes it pretty time intensive to find out the relation between the tasks and features.

like image 442
Ralf de Kleine Avatar asked Feb 21 '18 15:02

Ralf de Kleine


People also ask

How do I view the work items associated with a release?

If the associations are being created and the work items are being linked properly, you should be able to see that information in the Details tab under the Deployment section on the Work item page, as shown in the image below: Also, you can view all work items that were associated to a given release by going to the Summary page of a release run.

How are the associated work items linked to a release run?

According to the API, the associated work items are not linked directly to a release run. Instead, they are linked through the build that generated the artifact that was used as source for the release pipeline.

What is a work item in Git?

Work items link to Git branches, commits, pull requests, builds, and more. Work item forms provide two controls to show and quickly navigate to development objects. The Deployment control is described in this article, and the Development control is described in Drive Git development from a work item.

How to view the change summary of work-items before approving/rejecting a release?

In such cases, a Release Manager or a project manager or a Stage owner would like to view the Change Summary of work-items before approving/rejecting a release or any step in a release. For this, he/she need not come to the Release Management client but can do so through the Release Explorer (web client).


1 Answers

Retrieve work items by calling

https://{account}.vsrm.visualstudio.com/[teamproject]/_apis/Release/releases/{current release id}/workitems?api-version=4.1-preview.1&baseReleaseId={compare release id}

It just return the id, url of work items, you need to get details of work item through Get a list of work items REST API.

like image 189
starian chen-MSFT Avatar answered Oct 15 '22 18:10

starian chen-MSFT