We have a large instance of Visual Studio Online or VSTS or Azure DevOps. We have a Tag on work items that is called "A B" for example. Someone also created another tag "AB". I want to just rename the tag "A B" to "Don't use A B" or just delete the tag if possible. Is there an API I could use to do this? I checked out the TAGHelper add-in but because we have many tags, the tag helper add-in is just unusable. I can write a simple tool if needed, but wondering if there is a quick way to do this.
Select Create Tag from the Tags view in the web portal to create a new annotated tag. Specify a Name, select the branch to Tag from, enter a Description (required since you are creating an annotated tag), and select Create. The new tag is displayed in the tag list.
Create variable in your build pipeline Create or edit your existing pipeline. Go to Variables/Pipeline variables tab. Add your variable, for example EnvironmentTag and add default value. Select Settable at queue time to make sure that you can change it when you are scheduling your build.
I tried different options and no luck. So the workaround was
From the documentation
You can't delete a tag itself. However, if you delete a tag from all work items to which it's currently assigned, the system will delete the tag. The system automatically deletes unassigned tags after 3 days of disuse.
If you misspell a tag, don't assign the misspelled tag to any work item and the system will automatically delete it within 3 days.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With