Dashboard > Atlassian Plugins > ... > Macros > combining-reporter
  Atlassian Plugins Log In | Sign Up   View a printable version of the current page.  
  combining-reporter

Added by David Peterson , last edited by David Peterson on Sep 03, 2008  (view change)
Labels: 

{combining-reporter}

Plugin: Reporting Plugin, from version 3.0.0

This reporter combines the results of multiple sub-reporters into a single list.

Usage

{combining-reporter:unique=true}
  {xxx-reporter:...}
  {yyy-reporter:...}

  {xxx-sort:...}
  {xxx-filter:...}
{combining-reporter}

Parameters

Name Required Default Description
unique
false
If set to true, this will ensure that each item is only returned once, even if it comes from multiple reporters. Note: This will have a performance penalty due to the uniqueness checking.
matchAll
true
If set to 'false', content matching any of the criteria will be returned. Otherwise, the content must match all criteria.

Examples

Combining two sets of pages

This will display all the children of two separate pages into a single, sorted list.

{report-list}
{combining-reporter}
  {local-reporter:content:children|source=Foo}
  {local-reporter:content:children|source=Bar}

  {text-sort:content:title}
{combining-reporter}

{report-body}{report-info:content:title|link=true}{report-body}

{report-list}

Is it possible to have some sort of filter where only the results matching results between multiple reports are displayed? For example, have only pages that have the same content title in two spaces be displayed (sort of like matching all pages that do not have unique names between two spaces):

{report-list}
{combining-reporter}
  {local-reporter1:content:children|source=Foo:Home}
  {local-reporter2:content:children|source=Bar:Home}
  {text-filter:local-reporter1:content:title|includes=local-reporter2:content:title}
{combining-reporter}

{report-body}{report-info:content:title|link=true}{report-body}

{report-list}

Not currently. Probably the best route would be to add an 'intersect=true' option, or something along those lines, similar to the 'unique=true' option that's already available. Sounds like a feature request to me

Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators