How to report table-data from children pages?

Hello, I'm a beginner at confluence and want to ask may be a simple question.

I have a page with children pages. Every single children page is created with help of scaffolding plugin and has some text-data and table data.

Children Page:

{text-data:Name}{text-data}

{text-data:SystemName}{text-data}

{table-data:Structure|initialRows=2}

|| Attribute Name || System Attribute Name || Data Type ||

| {text-data:AttributeName}{text-data} | {text-data:SystemAttributeName}{text-data} | {list-data:Datatype|blank=true|type=select|multiple=false}

{list-option}varchar2{list-option}

{list-option}char{list-option}

{list-option}number{list-option}

{list-option}date{list-option}

{list-data}{align}|

I need to make a report table on parent page. Report table must have columns text-data1|text-data2| table-data, each row corresponds each children page. I have problem with reporting table-data. Any ideas?

Thank you!

2 answers

Dear @Daria Makeeva,

I hope this answer finds you well. I had to take a few liberties with finding a solution, and with just a bit of adjustment I came up with something viable. You can tweak and adjust as you need.

 

Parent Page
{report-table}
{expanding-reporter|data:structure|as=exr}
{content-reporter|spaces=@self}{content-reporter}
{expanding-reporter}
{report-column|title=Page Title}
{report-info|expanded:item > page:title}{report-info}
{report-column}
{report-column|title=Name}
{report-info|expanded:exr > data:dataname}{report-info}
{report-column}
{report-column|title=System Name}
{report-info|expanded:exr > data:systemname}{report-info}
{report-column}
{report-column|title=Attribute Name}
{report-info|expanded:exr > data:attributename}{report-info}
{report-column}
{report-column|title=System Attribute Name}
{report-info|expanded:exr > data:systemattributename}{report-info}
{report-column}
{report-column|title=Data Type}
{report-info|expanded:exr > data:datatype}{report-info}
{report-column}
{report-table}
 

Child Pages
||Name||System Name|| Attribute Name || System Attribute Name || Data Type ||
| {text-data:dataname}{text-data} | {text-data:systemname}{text-data} | {text-data:attributename}{text-data} | {text-data:systemattributename}{text-data} | {list-data:datatype|blank=true|type=select|multiple=false}
{list-option}varchar2{list-option}
{list-option}char{list-option}
{list-option}number{list-option}
{list-option}date{list-option}
{list-data}|

Dear @John Paz

thanks a lot for your answear, but it's not what I want, because in child page I really have structure like this

||Name||System Name|| Table date

and Table date has srtucture =  Attribute Name || System Attribute Name || Data Type

I find a solution to report table as a collection (refer every cell of table as element of collection), but I think it's not good idea


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 Jul 10, 2018 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 ...

670 views 21 12
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