Is there any way to edit labels, individually or in bulk, with Confluence 3.5?
Asked by Piergiuliano Bossi:

Hi all,

I'm looking to find a way to edit labels, individually or in bulk, with Confluence 3.5. I guess that I can resort to use the XML-RPC api, but wouldn't it be more convenient if there was a GUI to do that? I can't find any documentation about it though, not even with more recent versions.

Thanks,

bop


Answers:
author: Bob Swift (personal)
body: Not sure what you mean by **edit** labels. If you mean add and remove labels from various pages, [addLabels](https://studio.plugins.atlassian.com/wiki/display/CSOAP/Documentation#Documentation-addLabels) from [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) can be used for bulk changes.

For changing or splitting a label and modifying all content to correspond to the change: This is more difficult and there is no built in solution. However, the building blocks are there with addLabels and removeLabels. So you need to add the new label(s) and remove the old label(s) from each page. You can use [runFromSql](https://studio.plugins.atlassian.com/wiki/display/CSOAP/Documentation#Documentation-runFromSql) action with a suitable SQL query against the labels and content-labels tables in the confluence database. Don't have time right now to construct it for you.

comments: author: Piergiuliano Bossi
body: Let me explain with an example. Let's say that I start tagging pages and blog posts with the label "confluence". Then, one day, I decide that I want to split "confluence" in "wiki" and "atlassian". That is to say that I want all pages and posts that have the label "confluence" to have "wiki" and "atlassian" instead. Does it make sense?

Splitting is the most common operation. Other operations can be remove (get rid of that label from all the pages where it's used), rename or actually create: what if I want to assign the label "sport" to all pages that match a search for "football basket rugby"?

I think that in our case splitting is the most relevant though.

Thanks

bop


author: Bob Swift (personal)
body: Thanks for describing the detail. I kind of figured you were talking about something like that. Let me update the answer portion with more detail.


author: Michele Lim [Cprime]
body: Hi [@Piergiuliano Bo](/t5/user/viewprofilepage/user-id/753132),

We have recently made a free plug in [Power Scripts for Confluence](https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server&tab=overview) which you can download from the Marketplace to help automate Confluence administration, one of the features is bulk label admin. Here's the script:

<https://confluence.cprime.io/display/CTR/Replace+a+label+with+a+different+one>

And here is a [YouTube playlist](https://www.youtube.com/playlist?list=PLKTAla3ZrW8mMmYvgOVf3UPXU8V4nc-xj)showing other useful bulk admin actions you can do with Power Scripts for Confluence.

Hope this helps!

Michele


author: Mert Karada?l? _ K?stebek Teknoloji _
body: Hi,

You could do it with Label Manager for Confluence plug in.[](https://marketplace.atlassian.com/plugins/com.kostebekteknoloji.plugins.confluence.confluence-label-manager)<https://marketplace.atlassian.com/plugins/com.kostebekteknoloji.plugins.confluence.confluence-label-manager>  
You could search for similar labels in a space and then merge them into one standard label.  
You could also do bulk operations like appending , adding and removing labels.  
Documentation is here:[](http://www.confluence.kostebekteknoloji.com/display/PLUG/Label+Manager+for+Confluence)<http://www.confluence.kostebekteknoloji.com/display/PLUG/Label+Manager+for+Confluence>  
Regards,