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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Livesearch Macro - Restrict to labels: Possible to work with AND & OR?


I am working on a wiki-platform, which is based in an own space. Due to this, I implemented the livesearch macro on the space homepage.

As known, it is possible to include defined labels (hope exclude will once be available too). I would like to add certain labels, so i get only pages of interest as result.

It seems that in preview search, the macro search the content with Label A "OR" B. After clicking enter the result appears with Label A "AND" B, means also: no results, because none of the pages have both labels.

Is there a way to add a AND or OR rule in the livesearch macro settings?

Thank you very much for your help!



1 answer

0 votes
Diego Atlassian Team Jan 09, 2020

Hello there, @Oliver Mettauer !

As I understand, you need to have the OR operator in your Livesearch Macro. Looking through our documentation, I can tell you that the label list we specify is indeed an AND operator. Here is an excerpt from our documents about the label parameter:

Specify labels to limit the search to content with that label. If unspecified will search all content regardless of label.

Here is the whole page:

However, we can still use the OR operator within the search field itself. Here is an example:

  1. Create a label named old
  2. Create a label named new
  3. Label pages with one or the other
  4. In the Livesearch Macro, type this:
    1. labelText:old OR labelText:new
  5. The results should display all pages that contain at least one of the labels


Also, here is a couple of documents on Labeling and Search that will surely help! Take a look:


I hope this helps you out! Looking forward to your reply.

Hi Diego

Thank you very much for your answer. Happy to get that detailed help here.

Indeed I already checked the article with the search syntax, the mentioned syntax labelText works fine with me. What I would like to know is if I can add an OR-Rule in the settings of the macro.

Regarding the description "restrict to label(s)" i am only allowed to separate the predefined labels with commas. When using the macro, the live preview seems to use an "OR"-Rule and the detail search (after clicking enter) an AND-Rule (the labels are set in separate filters).

Is there a way I can set "labelText:old OR labelText:new" in the macro settings? Or can I solve the problem by adding the livesearch by Wiki Markup?

Like # people like this


I have the exactly same issue "When using the macro, the live preview seems to use an "OR"-Rule and the detail search (after clicking enter) an AND-Rule (the labels are set in separate filters)."

Any update on this Topic?

Thanks for helping 

Hi @Diego

I am also facing the same issue as Romain and Oliver. Are there any updates for this?

Thank you,


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

342 views 23 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you