Add links and images with augments - 8.x

Overview

This example shows how to add wiki links and images to CSV data produced by other processes. This highlights the real advantages of augments especially for data produced by other processes. In this example, the data is produced by the Confluence Command Line Interface (CLI) using the getSpacePermissionList action, and it relies on 2 images being attached to a page named "images" in the current space. The images are named "true.png" for the (tick) and "false.png" for the (error).

To render images with augment references in a table, the Allow JavaScript flag should be turned 'ON' in Global ConfigurationFor more information, refer to Configuration-8.x.

Macro browser input

Select this macro

Macro nameAdvanced Tables - CSV Table
Macro syntax{csv}

Define these parameters/values

CSV Table settings > Data settings > Output formatwiki
CSV Table settings > Sorting > Columns to displaySpace, Id Type, Id, Viewspace
CSV Table settings > Data format > Augments to data row values
[%Space%:],,,!images^%viewspace%.png!
CSV Table settings > Data format > Augments to heading row values,,,View

Column settings > Formatting > Column type (1

2

3

4)

S

S

S

E

Screenshot

Wiki markup input

{csv:output=wiki
  |columns=Space, Id Type, Id, viewspace
  |augments=[%Space%:],,,!images^%viewspace%.png!
  |headingAugments=,,,View
  |columnTypes=S,S,S,E}
...
{csv}

Example result

Other examples

Visit our full list of product examples for additional inspiration!