Skip to end of metadata
Go to start of metadata

{report-column}

Plugin Version: from version 4.0.0

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

Wiki Markup

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

Confluence 4+ Editor

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. * *stats* - _(Since 3.2.0)_ Gives access to all stats. See 'summaryFormat' for details.Note that for all of the above parameters (except count), you MUST specify the summaryValue for the value that you wish to calculate the statistics for.

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"._(Since 3.2.0)_ If 'summaryType' is 'stats', you can specify a "%keychain%" value here to output custom stats based on the [Stats] object. Eg: "Sum: %stats:sum%; Avg: %stats:value average%"

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.

colSpan

1

_(Since 3.2.0)_ The number of columns that this column should span across.

rowSpan

1

_(Since 3.2.0)_ The number of rows that this column should span down.

newRow

false

_(Since 3.2.0)_ If {{true}}, a new row will be started with this column. This is most useful in conjunction with 'colSpan' and 'rowSpan'.

class

_(Since 3.2.0)_ The CSS class(es) to add to this column.

Notes

Examples

Keychain Injection

Output the title and excerpt of each child page.

Spanning Rows and Columns

Sometimes it's useful to have a column take up more space, or have two values one below the other. Using 'colSpan', 'rowSpan' and 'newRow' can help with more complex table layouts.

The example below will render the title on one row, the body on the next (spanning two rows itself) and the 'Creator' and 'Modifier' details on the right-hand side in two separate cells. Note the use of the 'class' parameter on some columns to allow custom styling for those cells.

Recipes

No content found for label(s) +recipe,+report-column.