History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: REPOR-183
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Peterson
Reporter: David Peterson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Reporting Plugin

Change {expand-on} into {expanding-reporter}

Created: 02/Sep/08 02:13 AM   Updated: 03/Sep/08 07:44 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0

Time Tracking:
Not Specified


 Description  « Hide
{expand-on} has some limitations, is generally confusing, and doesn't work with the revamped underlying Reporting library. The solution is to create a new {expanding-reporter} to wrap around existing reports to achieve the same result with better flexibility.

For example, to list all grandchildren of the current page, you would do this with {expand-on}:

{local-reporter:content:children}
  {text-sort:content:title}
  {expand-on:content:children|as=grandchild}
    {text-sort:content:title}
  {expand-on}
{local-reporter}

This will display the children of the children of the current page, ordered first by the title of the child, then by the title of the grandchild. There is no way to order the output only by the title of the grandchildren.

With {expanding-reporter}, it would look like this:

{expanding-reporter:content:children|as=grandchild}
  {local-reporter:content:children} {local-reporter}
  {text-sort:content:title}
{expanding-reporter}

This will expand on the 'content:children' property of each of the children returned by the local-reporter. It will sort by the grandchild title, not the child title. If you wanted to sort by the child title, you would add {text-sort:content:parent > content:title} before the other text-sort.

It is still accessed the same way in the report-body, in this case {report-info:expanded:item} for the child and {report-info:expanded:grandchild} for the grandchild.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson - 02/Sep/08 02:13 AM
This has been implemented, but needs to be documented on the plugins website.

David Peterson - 03/Sep/08 07:44 AM
Documentation is here.