It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Labelling multiple pages in a single action (thru UWC or confluence)

I'm using the UWC converter to import several hundred pages (a glossary) and I want to assign the same tag to them all.

The documentation on UWC's Label Framework seems primarily guided towards coding and editing the JAR - something I'd rather not do.

Is it possible to do this through modifications to the .properties file, or even independently of UWC?

I see several ways something like this could be done, but don't know how to implement it:

  • Add a line to the properties file which assigns label "foo" to all imported pages
  • Add some kind of label field to all the to-be-converted files which says "label:foo" and add a line to the properties file which converts that string to the label
  • Import/convert all the pages without labels, and then run some macro within Confluence to label all the pages. [I will be importing all the pages to a new dedicated space, but will then move them to an existing space which will contain other pages.]

Any suggestions for how to do this?

4 answers

1 accepted

2 votes
Answer accepted

I ended up using the Confluence CLI (Command-Line Interface) - extremely useful tool, that.

There isn't a facility in place (in the UWC) to automatically add a label to every page using a property only. That being said, you could try leveraging a combination of a UWC property with adaptavist's add-label macro .

Something like:${replace-with}$1NEWLINE{add-label:foo}

This would add a newline and your addlabel macro to the end of every page

Check out Ad hoc Canvas' List functionality.

Disclosure: I work with Comalatech.


You could do it with Label Manager for Confluence plug in.
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:

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

360 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you