Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Searching for pages with a set of labels 'ANDed' together, not 'ORed'?

dhaskell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2021

Using the search function on a space, is there a way for the labels field to search for pages with all the labels listed 'ANDed' together and not 'ORed'?

For example: I want to return pages that have both the label 'chocolate' AND 'cake' as labels on them, not all of the pages that have 'chocolate' OR 'cake' as labels.

How can I do this?

1 answer

0 votes
Lukas Ortner August 13, 2021

Hello,

you can use CQL (Confluence Query Language) and give the following search: 

label = chocolate and label = cake and space = SPACEKEY

Cheers, Lukas

dhaskell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2021

I gave this a try and I still get all sorts of stuff that has either of the labels, or content that matches the labels. I must be doing something wrong.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events