Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Div
idProductTOC

On this page

Table of Contents
maxLevel1
excludeOn this page
typeflat
separatorpipe

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 CSOAP using --action getSpacePermissionList 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)


Macro Browser Input

Select this Macro

Macro NameCSV (Comma Separated Values)
Macro Syntax{csv}



Define these Parameters/Values

Output formatwiki
Columns to showSpace, Id Type, Id, Viewspace
Augments to data row values
[%Space%:],,,!images^%viewspace%.png!
Augments to heading row values,,,View
Column typesS,S,S,E


Explaining the Augments to data row values parameter's value:

Gliffy
imageAttachmentIdatt1091666598
baseUrlhttps://bobswift.atlassian.net/wiki
macroIdde5d2836-b2e9-420c-aafc-11579dc6fdcd
nameAugmentsDiagram
diagramAttachmentIdatt1090492822
containerId67830728
timestamp15816080459501581608039667


 Screenshot

Wiki Markup Input

Code Block
languagetext
linenumberstrue
{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!