powershelltfsazure-pipelinestfs-2015

TFS 2015: Updating work item state after a release


I have a requirement to update work item status to a ready for test state after the first successful release using TFS release management. It seems like there should be a straightforward built in task to do this but I can't see it. My current thinking is

  1. Use TFS REST API to query the workitems and update them all using powershell
  2. Wrap this up in a powershell task and include in the release definition

This will do the job I reckon. It's yet more powershell in our releases but they are built on a stack of powershell anyway so at least it's well known.

But is there a better (quicker) way to do this? If the answer is a straight 'no' then great - I will accept that answer gladly.

We are on TFS 2015 R4.

Many thanks for any/all help


Solution

  • Sorry, there is no out-of-the-box feature for this by Microsoft.

    But we still could use some three-party extensions or tasks to handle this situation.

    The WorkItem Updater task can update the following work item fields during a build or release:

    enter image description here

    The limitation is also very obviously, it could only update work items which be linked to a build. Which seems not be a problem, it's also a good behavior track work items during build pipeline.

    Otherwise, you have to use the ways mentioned above to update normal work items after/during a Release.