how can I build a report for value = ?

So I have metadata on a page, but I'm trying to figure out how I can build a report against a specific value.

ie if the column is "day", and there are values of friday, friday, friday, thursday, wednesday

how can I build a report for all the rows that have day = friday?

3 answers

1 accepted

1 vote
Accepted answer

I'm a little hazy on the exact Supplier that Metadata provides, but you should be able to do something like this:











You can add more filters and sort values inside the {local-reporter} to customise your query. If you use Scaffolding data fields instead, you can specify formatting for date and number fields. Just substitute "data:My Field Name" into the above, and provide a 'format' rule to display them. Eg, for creation date it might be:

{report-info:data:Creation Date|format=d MMMM, yyyy}

Which would output something like "29 September, 2011".

Hope that helps!

Thanks David

I tested that, and it's returning the actual scaffolding data, not the values I put in.

ie when I specify for Application, it's returning this value:

{text-data:Application2|width=600px|height=50px|type=area}WM, WMPB .. etc etc

Any idea how I can get around that?

I would suggest using the actual 'Application2' value then. That is:


That will return the contents of the Scaffold field, rather than the metadata field which contains the Scaffold {text-data} markup.

Great! That's one step closer to getting what I need.

Based on using the data: pre-fix, how should I use the text-filter to filter based on that data?

Can I use something like data:Application2|include=WC where the metadata has WC somewhere in the data? (I want to be able to use include rather than just value=)

Thank you David!

Aha! I think I got it.


That should be sufficient. Thanks David

That would do the trick. If you want it to be a real 'contains WC', then add '.*' before and after. Eg:


Great! That's definitely a huge help.

One more issue I'm running into.


It's not letting me grab the data if it's a list-option. Is there anything special, aside from :data:, that I have to use to grab those values?

Thanks for all your help David

{list-option} values are accessible as 'Text' objects (via the Text Supplier). However, in this case you have 'multiple=true', which means the result for 'data:Component3' is actually a Collection of Text values, so you need to work with the value as a collection. There are a couple of ways to do this. The simplest is {report-on}, and would look like this:



Everything was working until I tried to use "descendants" .. only to find there was a small bug :)

I switched it to "descendents" and BAM! Everything is working great now.

Thanks for all your help David

{text-filter:prefix:key|value="friday"} should do the trick for you.

Does depend on how you're storing your metadata (ie. with the Metadata Plugin or the Scaffolding Plugin?) and what you're reporting with. More details of your wiki markup would be helpful...

I'm actually using both.

I'm using live-template to pull in the live template from the scaffolding plugin and inside the live-template, I'm wrapping the fields with metadata

that way each page with the template that I use, has the metadata

Here is an example of the reporting page I have on the metadata

{metadata-report:Page,Application,Component,Create Date,Fix Version,Author,Publisher|root=Test Cases|pages=@descendants}
that pulls in the meta data that I'm using for each page. I'm trying to figure out how I can do something like...
Component = AB

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

475 views 3 18
Read article

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