Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Narrowing down the labels in a query

Carl Rymenams May 4, 2021

I would like to do a search with multiple labels.
When doing so, I would like to see only the labels that are left in the resulting pages.

For instance:

Page 1 has label A, Label B

Page 2 has Label A and and label C

Page 3 has Label A, label C and label D

Page 4 has lavel B 


when I filter on "Label C"
I get Page2 and 3 listed.

Now I want to add another filter on label... Confluence currently suggest Label A, B, C and D, while actually in my search results only Label A and D are still available.

Is it not possible to get an overview of what labels are still in the query results?

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 11, 2021

Hello there @Carl Rymenams!

First thing I would like to ask is:

  1. How are you searching for this content?

I am asking this to understand if you are using the "Content By Label" macro, the native search on the user interface or via REST API and CQL.

If you are using the Content by label macro, using the label filter will use an "AND" conditional. Meaning that the content you are looking for must have all the labels you specified.

For more information on the Content by label macro, you can check here:

Insert the content by label macro

If you are using REST and CQL, you can filter by many different conditionals and filter by multiple labels. For the documentation on this, you can check here:

Advanced searching using CQL

Let us hear from you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events