How to report table-data from children pages?

Daria Makeeva July 23, 2014

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

0 votes
Daria Makeeva October 21, 2014

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


0 votes
John Paz
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.
September 26, 2014

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}|

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events