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

Can there be an AND relationship for identifying pages to display by labels?

Joanne Pandya March 4, 2016

This question is in reference to Atlassian Documentation: Content by Label Macro

I would like to use the Content by Label macro to list all the meeting notes and other labels.  However, from my understanding, an or is used when adding multiple labels in the Content by Label macro.

1 answer

1 vote
NotTheRealStephenSifersNOPENOPENOPENOPE
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.
March 4, 2016

Hello Joanne,

 

This is straight from the doc you linked, and it looks like what you want to do will work and is built in:

 

 Use AND, OR, and NOT operators
  • For an OR search, specify multiple values in the same field.
    So to show pages with 'label-a', 'label-b' or both you'd put 'label-a' and 'label-b' in the same Label field, like this:
  • For an AND search, add more than one filter and specify a single value in each.
    To show only pages with label-a and label-b you'd put 'label-a' in one label field, then add a second Label field to the macro, and put 'label-b' in the second one, like this:

    Put simply, OR values are entered in the same filter, AND values are entered in different filter. 
    Only some filters support AND. If the filter doesn't support the AND operator, you won't be able to add that filter more than once.  
  • For a NOT search, enter a minus sign (-) before the label. This'll exclude everything with that label.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events