Developer90
Developer90

Reputation: 192

Add tag to bug when pull request finishes succesfully Devops

Anybody knows if it is possible to add a predefined tag to all bug work item types linked to a pull request, when the pull request is completed in devops?

Upvotes: 1

Views: 273

Answers (1)

Shamrai Aleksander
Shamrai Aleksander

Reputation: 16018

No, by default. As workaround, if you have CI build, you can add a custom step with rest api (with PowerShell or something else):

  1. Get last commit detail information: Commits - Get. Then you can find work items the workItems field.
  2. Update each work item: Work Items - Update (Add a tag)

Upvotes: 1

Related Questions