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

This widget could not be displayed.

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
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

569 views 7 6
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