Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename a tag in Azure DevOps

Tags:

azure-devops

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.

like image 620
dgorti Avatar asked Nov 27 '18 20:11

dgorti


People also ask

How do I add a tag to Azure Devops?

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.

How do I use tags in Azure Devops pipeline?

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.


2 Answers

I tried different options and no luck. So the workaround was

  • Filter the tasks in the backlog by the tag
  • Selected all of them (do this in backlog view, not board view)
  • Right Click -> Edit
  • Tag(remove) the tag I don't want
  • Tag(add) the tag I want enter image description here
like image 180
nilan59 Avatar answered Sep 21 '22 06:09

nilan59


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.

like image 25
dreadcrumb Avatar answered Sep 22 '22 06:09

dreadcrumb