Scaffolding & reporting plugin

I have a first table and I want to have on it a report table of three values off my scafoold datas on children pages.

In my children pages, I'm using :


{repeating-data:td|initialRows=1}

*First* {text-data:Nb1|type=line}Nom de la tâche{text-data}

*Second :* {text-data:Nb2|type=line}Resonsable{text-data}

*Third* : {text-data:Nb3|type=line}Pourcentage d'avancement{text-data}

*Commentaire :*

\\

_{text-data:Com|type=area}Commentaires{text-data}_

----

{repeating-data}

I wanted to have A table report with the 3 first values on my first page, so i wrote :

{report-table}

{content-reporter:space=@self}

{content-reporter}

{report-header}{center}*Report Table*{center}{report-header}

{report-column:title=First}{report-info:data:Nb1|link=true}{report-column}

{report-column:title=Second}{report-info:data:Nb2}{report-column}

{report-column:title=Third}{report-info:data:Nb3}{report-column}

{report-table}{column}

But It doesn't work !

What am I wrong ?

What to do to correct it and to have my table with the 3 scaffold values of children pages ?

1 answer

Hi Gabi,

You need to tell reporting to loop through your 'tb' repeating-data value to get at the fields inside. If you're going direct for the sub-contents, you'll need to expand on the field as well. Eg:

{report-table}

{expanding-reporter:data:td|as=td}

{local-reporter:page:children}

{text-sort:page:title}

{local-reporter}

{expanding-reporter}

{report-column:title=First}{report-info:expanded:td > data:Nb1}{report-column}

{report-column:title=Second}{report-info:expanded:td > data:Nb2}

{report-empty}_No 'td' rows are available._{report-empty}

{report-table}

Hope that helps!

It's better, but i have the message of empty fileds but I know that on my three children pages I have scaffold data with values that match with the data report.

I just added 2 {report-column} to your code, is their something else to do I forgot ?

{report-table}

{expanding-reporter:data:td|as=td}

{local-reporter:page:children}

{text-sort:page:title}

{local-reporter}

{expanding-reporter}

{report-column:title=First}{report-info:expanded:td > data:Nb1}{report-column}

{report-column:title=Second}{report-info:expanded:td > data:Nb2}{report-column}

{report-empty}_No 'td' rows are available._{report-empty}{report-column}

{report-table}

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,989 views 25 10
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