Get your own customer support community
 

Count elements from page great-children

Hi,
I already did this post on your Reporting Plugin page but I cannot see it anymore.
Here, it should be the best place to post it again :)

I try to count the number of comments for all page children.

I give you my pagetree:

Page Project
|__Page Need 1
| |__Page Requirement 1
| |__Page Requirement 2
| | |_Comment 1
| | | |_Comment 2
| | |_Comment 3
| |__Page Requirement 3
| | |_Comment 4
|
|__Page Need 2
| |__Page Requirement 4
| |__Page Requirement 5
| | |_Comment 5

So on so forth.

So on the page Project I'm trying to count the total number of Comments per Need and the last comment for each Need. I try to di it with the Reporting Plugin

I use this code:

{report-table}
{content-reporter:scope=@self > children|type=page}
{text-sort:content:title}
{content-reporter}

{report-column:title=Needs} {report-info:content:title|link=true} \\{report-info:content:excerpt}{report-column}
{report-column:title=Owner}{report-info:data:Ownersource}{report-column}
{report-column:title=Nb Requirements}{report-info:content:children > size}{report-column}
{report-column:title=Nb Comments}

{report-info:content:children > all comments > size}

{report-column}

{report-column:title=Last Comment}

{report-info:content: children > all comments > last > creation date|format=dd MMM yyyy HH:mm} {report-info:content:children > all comments > last > creator > user:full name|link=true}

{report-column}
{report-table}

The two columns "Nb Comments" and "Last Comment" don't work

I quite sure that "children > all comments" is the key part, I should do a loop to sum all comments done for each child, but I don't know how to do it.

Thanks for your returns and help

Cyrille
 
happy I’m sure you have the answer
Inappropriate?
2 people have this question

The company marked this question as answered.


User_default_medium