Using the Content by Label macro, I'm trying to list pages that satisfy this logic: select all pages that:
- don't have the label "blue" => run alone: returns 5 pages
- OR don't have the label "red" => run alone: returns 5 pages
- OR don't have the label "yellow" => run alone: returns 4 pages
What I want is the logic to return the maximum amount of pages, i.e. in this case: 5 pages. But when I run this logic using this:
I get 4 pages listed instead of five.
How do I work this out with the labels in the editor?
Hi Adriano,
I just need some clarification here on what you're trying to make happen so I can best understand what you need.
I created 5 pages on my instance:
Red (with a label of red)
Orange (with a label of orange)
Yellow (with a label of yellow)
Green (with a label of green)
Blue (with a label of blue)
I type -red, so all pages that are NOT with label red, and I get as expected, all pages that are NOT red:
Orange
Yellow
Green
Blue
Same if I only use -blue, all pages that are not blue, and same with -yellow, all pages that are not yellow. I get 4 results each time.
Now, if I put in Label*: -red -yellow -blue, then I get two results because these are all the pages that do not include red, yellow, OR blue:
Green
Orange
Same for if I make three filters, with one label each:
Label*: -red
Label: -yellow
Label: -blue
I still get only green and orange, because those pages do not include red AND yellow AND blue.
If I have misunderstood your setup in any way can you please let me know and what exactly you are expecting to happen? I want to understand where the fault is.
Thank you!
Shannon
Hi Shannon. Yes, this is working fine. I got to the same conclusion a few days ago, but didn't update this post. The problem was with the way I thought labels worked (esp. with AND and OR). Thanks for your help, Shannon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome, Adriano!
Happy you were able to come to the same conclusion.
Take care and have a pleasant weekend,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.