Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workitems of "skipped" releases #4

Closed
DeluxZ opened this issue Jul 7, 2017 · 3 comments
Closed

Update workitems of "skipped" releases #4

DeluxZ opened this issue Jul 7, 2017 · 3 comments

Comments

@DeluxZ
Copy link

DeluxZ commented Jul 7, 2017

When using the task in a release it will only update the workitems linked to the release.
image
In the case above the task will not update the workitems linked in Release-135. Is it possible to check per environment which workitems are deployed with previous release (like the Compare in Work items)?
image

@BlueBasher
Copy link
Owner

Need to investigate how to determine what the previous release Id was and what Api to use to query the WorkItems associated since that release.
Any help with this investigation would be appreciated @DeluxZ ;)

@DeluxZ
Copy link
Author

DeluxZ commented Jul 10, 2017

I think you should be able to get the previous release id while iterating through the list of releases. I guess a filter on status is a good idea and expand the environments. In the environments look for the environment name which triggers the work item updater task and check the status field till the first with status == succeeded and use the id of the release in the next API call.

The compare button in VSTS does a call to https://{account}.vsrm.visualstudio.com/{project}/_apis/Release/releases/{currentReleaseId}/workitems?baseReleaseId={releaseIdToCheck}&$top=250 (API is not documented..) which results in a list of workitem ids.

@BlueBasher
Copy link
Owner

It took some time but... finally there's now an option to include the workitems from 'skipped' releases.
This is implemented in #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants