Local-reporter macro. Two (or more) labels

I have a code on page:

{report-block}
{local-reporter:value:label spec_cases > label:content|space=PUB}
{content-filter:space=PUB|labels= +marine, +(algeria, dz)}
{text-sort:content:title}
{local-reporter}
{report-body}
h5.{report-info:content:title|link=true}
{report-info:content:labels|link=true}
{report-body}
{report-block}

It works, but it's slow. It first chooses pages with 'spec_cases label', and then narrows results only to those pages with 'marine' label and either 'algeria' or 'dz' label (or both). The question is if it's possible to create something like that:

{report-block}
{local-reporter:value:label (algeria, dz) > label:content|space=PUB}
{content-filter:space=PUB|labels= +marine, +spec_cases}
{text-sort:content:title}
{local-reporter}
{report-body}
h5.{report-info:content:title|link=true}
{report-info:content:labels|link=true}
{report-body}
{report-block}

The code above doesn't work of course.

I know I can use combining-reporter, but I'd like to avoid it.

1 answer

1 accepted

There's no way to do it with the 'value:label' option, or with {local-reporter}. I suspect the problem is that you can't filter labels to a specific space using 'value:label' - it will get all content with that label across all spaces initially.

I would suggest testing using {content-reporter} in this case. It has some performance issues currently (hopefully to improve for the next release of Reporting for Conf 4.0), but with labels it is often not too bad. Try this:

{content-reporter:labels=+(algeria, dz), +marine, +spec_cases|space=PUB}
  {text-sort:content:title}
{content-reporter}

See how that goes...

Thanks for the answer.

Unfortunatelly content-reporter macro is way too slow. That's why I want to use local-reporter.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

391 views 17 9
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you