Confluence Wiki page Label bulk application

I am looking for a solution to the problem of pages without labels.

I can get a list of pages that do not have labels, about 19,000 of them in our Wiki.

  1. I need to know if there is a way to create lists of pages and bulk apply standard labels to those pages.
  2. I also need to know if there is a way to mandate that when a page is created that the creator must add at least one of a standard set of labels.

Thank you for your help!

3 answers

I manged to do this through the API without any add-ons. Had some problems at first because the Atlassian code did not not work according to the documentation. Had to be modified when used on a windows machine or through the Confluence rest API browser. 

That covers the first step. All you need after that is the pageid's on the pages you want to modify and create a loop script or bat file


Hi Greg, 

thanks for the question. I had the same. I would like to know how you got the list of unlabeled sites?



Unless you can find an existing add-on that can do this, after trying to create a CQL query to do this it may be a case of extracting a list of all pages and then filtering out those that don't have labels.

Julia,  Sorry it took my a while to get back to you.  Try this:  type:page NOT labelText:[a TO z]  NOT labelText:[0 TO 9]

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,475 views 114 8
Join discussion

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