How do you get only those items with say Label A and Label B and not Label A, Label B AND Label A & B?

This question is in reference to Atlassian Documentation: Content Report Table Macro

if i have pages w/ label A and label B and some w/ A & B how do I get a report with just those that are A&B. There doesn't seem to be a way to do that.

2 answers

The filtering by labels in content reports uses the inclusive OR.  This means that if your filter says Label A, Label B then Confluence will return all pages with "Label A OR Label B OR Both":


(An exclusive OR, which Confluence does NOT use, would return pages with "Label A OR Label B but NOT pages with Both").

To perform an AND - i.e. to return only pages with "Label A AND Label B" - you need to add a new filter line:


That will return those pages that have both "Label A AND Label B", in other words it won't return pages unless they have both of those labels.



you = your base URL

SpaceID = the space ID to search (can be deleted to search the entire site)

Label1, etc. = all the labels you want discovered, separated with a plus sign (+)

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 Friday 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...

274 views 11 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