metadata-table macro
Overview
The metadata-table
macro produces tabular reports of metadata from matching pages in a two-dimensional matrix format.
For the two-dimensional matrix, the:
X-axis (X Value) is a value that must exist in metadata tags in at least two other pages
Y-axis (Y Value) is a value that must exist in metadata tags in at least two other pages
The cells of the tabular report are the values of the metadata on the pages. Again, this must be present on at least two of the pages.
Parameters
Parameter | Required | Default | Notes | Version |
---|---|---|---|---|
|
| Metadata value name for the x-axis of the tabular data that must be present in at least two of the pages. | ||
| Metadata value name for the y-axis of the tabular data that must be present in at least two of the pages. | |||
|
| Metadata value name that populates the cell body of the table that must be present in at least two of the pages. | ||
| Page label to filter results of the macro. Limits the content to only that which has the specified label(s). | |||
|
| Limits content to a group of pages:
| ||
|
| Use | ||
|
|
| Use |
|
| Specifies the value returned for the cell body using each value of the metadata
|
Usage
To retrieve the values for of pages with a particular metadata for the table X-axis and Y-axis
Choose the Metadata table macro from the Confluence macro browser:
In the macro editor, add the metadata value names for each of the X Value, Y Value, and the Value parameters. These are used to populate the header row and header column cells of the table
In the example, the macro displays the Jan Hours
metadata value recorded for each of the X-Value Project Lead
metadata values. The Y Value field differentiates the values by the Name of the app against which these hours have been recorded.
The macro returns one value for each of the table cells on each page. Using multiple values of the same metadata on a page results in inconsistent results, as only the value is returned for the first metadata encountered.
Reference markup
{metadata-table:Atlassian Product,Name,Installs}
The macro retrieves the Installs
metadata values for the child pages of the current page.
These are displayed in tabular form for matching pages in a two-dimensional matrix.
The matrix is created using the other metadata names:
Product Name
with values of Confluence and JiraName
with values for each of the apps
Each entry in the matrix is from the page with the metadata values in the corresponding header row (x-axis) and header column (y-axis) cell of the table.
Related macros
Related pages
Need support? Create a request with our support team.