How do I get a list of Confluence pages that *do not* have a specific label?

I'd like to get a report that shows labels that DO NOT have a particular label. Is there a way to do a "not" in a page report or other type of page listing macro?

3 answers

0 vote
Davin Studer Community Champion Mar 12, 2015

You could do a search like below. You could also use the search results macro to put it on a page. Just replace "{yourlabelhere}" with you label. The "/.*.*/" will return all pages and the "NOT labelText:{yourlabelhere}" will filter out any that have that label.

/.*.*/ NOT labelText:{yourlabelhere}

Where do I put that? I tried it in the search field and in a content macro for a page. I got errors/nothing.

Davin Studer Community Champion Mar 12, 2015

Just put it in the top right search box. Keep in mind the "NOT" and "labelText" are case sensitive. So "not" or "labeltext" will not work.

The Content by Label Macro will allow you to exclude labels using the "-" sign, I believe -

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,351 views 25 10
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