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

Added by david , last edited by David Peterson on Mar 04, 2008  (view change) show comment
Labels: 

{report-column}

Plugin: Reporting Plugin

Displays a single column in a report-table.

Description

This macro will usually contain at least one use of the report-info macro, or another macro which displays information about the current item being reported on.

Usage

{report-column:title=Column Title|width=[width value]}{report-item:value}{report-column}

Parameters

Name Required Default Description
title
The title to display in the table header.
width
The width of the column. E.g. "50px", "20em".
summaryType
The type of summary to display at the end of this column. May be one of:
  • sum - The sum total of all numbers in the column.
  • count - The number of non-blank values in the column.
  • average - The average of all numbers in the column.
summaryValue
The key chain value for the column summary, or plain text to display if the 'summaryType' is not set for this column. E.g. "data:My Number", or "content:children > collection:size". Note: The summary value key can be completely unrelated to what is displaying in the column, if so desired.
summaryFormat
The number format to use for the summary. E.g. "$#,##0.00".
injected
false
(Since 2.0.0) If set to true, the body will have any '%prefix:keychain%' values injected with values from the current report item prior to being rendered.

Examples

Keychain Injection

Output the title and excerpt of each child page.

{report-table}
{local-reporter:content:children}
{local-reporter}

{report-column:injected=true|title=Title}%content:title%{report-column}
{report-column:title=Body}{report-info:content:excerpt|render=wiki}{report-column}

{report-table}

Recipes

See Also

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