/
JSON Table Field Manipulation or Calculations - 8.x
JSON Table Field Manipulation or Calculations - 8.x
On this page
Overview
This page shows how to use Augments for field manipulation or calculations when using the JSON Table macro, which is part of the Advanced Tables for Confluence app. In this example, we use Groovy scripting to do field modification based on the field data. This is just a simple example of the technique.
Scripting is expensive, so make sure you surround the json-table macro with the Cache Macro and/or the Future Macro to minimize response time for the page.
Reference: Use Augments with JSON Table.
Macro Browser Input
Select this Macro
Macro Name | Advanced Tables - JSON Table |
Macro Syntax | {json-table} |
Define these Parameters/Values
Macro Body | [{a: 1495020217, b: 1495020217.0}] |
JSON Table settings > Data settings > Output format | wiki |
JSON Table settings > Data format > Augments to data row values | , "{groovy}def x='%1%'; print x.substring(0,10){groovy}" |
Column settings > Formatting > Column type (1 2) | MX~YYYY-MM-DD MX~YYYY-MM-DD |
Screenshot
Example Result
A | B |
---|---|
2017-05-17 | 2017-05-17 |
Other Examples
Visit our full list of product examples for additional inspiration!
, multiple selections available,
Related content
Examples for JSON Table macro - 8.x
Examples for JSON Table macro - 8.x
More like this
How to configure the JSON Table macro to manipulate the row data in Confluence
How to configure the JSON Table macro to manipulate the row data in Confluence
More like this
Query and Transform your Data with JSONata
Query and Transform your Data with JSONata
More like this
Table Data
More like this
Create a dynamic table
Create a dynamic table
More like this
How to display and customize the Date and Time format in the Advanced Tables for Confluence app hosted on the Data Center using JQL macro
How to display and customize the Date and Time format in the Advanced Tables for Confluence app hosted on the Data Center using JQL macro
More like this