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

Todd Placher October 12, 2016

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

1 vote
Rob Woodgate
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2016

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":

AorB.png

(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:

AandB.png

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.

 

0 votes
Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2016

https://you.atlassian.net/wiki/label/SpaceID/Label1+Label2

 

Where:

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
TAGS
AUG Leaders

Atlassian Community Events