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 WorkItemUpdater.ts - bugfix remove tags functionality #87

Merged

Conversation

xstevy
Copy link
Contributor

@xstevy xstevy commented Sep 27, 2021

  • I tried to use the WorkItemUpdater to add at linked build work items each on the one hand a tag like 'deployed_to_production' and to remove a tag like 'deployed_to_test' on the other hand.

  • The logs told me that it would do it, but the system was shown both tags afterwards.

  • After some debugging rounds I found out that with patch parameter 'add', which was used here by default,
    one can only add tags to Azure Devops work items but not delete any of them.

  • Because of that when you want to delete tags from work items, you need to use the patch parameter 'replace' instead.

  • So with this pull request I adjusted the WorkItemUpdater.ts, so that the patch operation parameter 'replace' is used, when there are tags that should be removed.

Update WorkItemUpdater.ts, add operation parameter to fix the wrong 'add' patch parameter at tag deletion functionality.
@xstevy xstevy changed the title Update WorkItemUpdater.ts Update WorkItemUpdater.ts - bugfix remove tags functionality Sep 27, 2021
@BlueBasher BlueBasher merged commit d52099e into BlueBasher:master Sep 27, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants