Tabs | Macro Editor Label | Default | Description | Macro parameter |
---|
Data Source
| Method of locating CSV data | macro body
| Specifies the list of options where CSV data is located. The included data follows the body data based on the location selected. - Attachment - Data is read from the list of options selected for the following parameters:
- Space - Lists all available spaces.
- Page - Lists all the pages available from the selected space.
The following options indicate: - Attachment - Lists all the attachments from the selected page.
- Filename - Data is read from the input specified in the File name field. You can specify the file located in Confluence home directory/script/filename, also subdirectories.
Template - Data is read from a global page template specified in the Name of the template field.
URL - Data is read from the URL of CSV data, Username, Password, and Connection timeout fields that are explained in the succeeding rows. Profile - Data is read from external applications such as GitLab and GitHub with a pre-defined set of parameters. If selected, you must then specify the profile (Profiles) and the URL (URL of CSV data) of the CSV file(s). Available from 8.1.0 version.
Info |
---|
- This option appears only if at least one profile exists in your instance.
- For more information about profiles, refer to the Configuration documentation.
|
| script |
Profiles |
| Contains a list of all profiles that are configured for this instance. Appears if Method of locating CSV data is set to Profile. Available from 8.1.0 version. |
|
URL of CSV data |
| Specifies the URL of a CSV file. If specified, the included data follows the body and script data. If a profile is specified in the Profiles field, enter the relative path of the actual location of the CSV file(s) here. Support for profiles is available from 8.1.0 version. Info |
---|
Use of this parameter may be restricted for security reasons. See your administrator for details. |
| url |
Username (if required) |
| User name for URL access via basic authentication. | user |
Password (if required) |
| User password for URL access via basic authentication. The Password is encrypted and remains secure (available from version 8.6.0). Note |
---|
If the first attempt fails while decrypting the password, the CSV Table macro initiates three retry attempts to decrypt the password. (Available since app version 8.7.1.) |
| password |
Connection timeout |
| Allows setting the wait time for URL access for slower connections. Time in milliseconds. | timeout |
File encoding |
| File encoding for an external file if different from the system default handling. Since 4.1.0. Example: UTF-8. Refer to this article for more information. | encoding |
Data Format | Column delimiter | , | | delimiter |
Quote character | double | The character used to represent quoted data. Quoted data may contain delimiters or new lines. Quote character data must be doubled inside a quoted string.
- double - Double quote character: "
- single - Single quote character: '
| quote |
Data Settings
| Columns to display |
| Comma separated list of column names or numbers in any order. Defaults to all columns in existing order. Columns are enumerated starting at 1. | columns |
Output format | html | Determines how the output is formatted. Use wiki to have the data in the table rendered by the wiki renderer. | output |
Ignore trailing blank rows | On | A row is considered blank if all the columns selected by the column parameter are blank. Turn this parameter Off to show these blank rows. | ignoreTrailingBlankRows |
Show non-formatted version of generated wiki | Off | Turn this parameter On to show a non-formatted version of the wiki table following the formatted table. This is used to help resolve formatting issues. It can also be used to convert CSV to Confluence markup by cut and paste. | showWiki |
Escape special wiki characters | Off | Turn this parameter On to allow few special characters to be escaped so that the formatting is unaffected. When wiki output is requested (output=wiki), some special characters (like '|', '[', ']', '{', '}') in data may cause undesirable formatting of the table. The default is false so that data that has wiki markup is handled correctly. | escape |
Render wiki markup macros in body | Off | Turn this parameter On to render wiki markup macros found in the body prior to processing as CSV. This is useful to run macros from Scripting for Confluence, Run CLI Actions in Confluence, SQL for Confluence, or similar that can produce CSV output. | macros |
Stop encoding of html characters | Off | Server only. Turn this parameter On for CSV tables that use output=html and have HTML content. HTML content like <a href=http://google.com>google> displays as a link only if this parameter is enabled. Your administrator must grant specific users or groups to use this capability using Macro Security for Confluence. | disableAntiXss |