Description
This article illustrates how to create a profile in for use with the CSV Table and JSON Table macros using a URL.
Info |
---|
Before you begin:
/projects/:id/repository/files/:file_path/raw
https://gitlab.com/api/v4
https://gitlab.com/api/v4/projects/:id/repository/files/:file_path/raw?ref=master
|
There are three ways to work with URLs where you can use:
...
To use this profile in a Confluence page:
- Search for the CSV macro Table macro and edit it.
- Select Profile in Data source > Method of locating script.
- Select BitbucketFullURL from the Profiles drop-down list, and then, click Save.
...
You can create a profile by providing a base URL and then, enter the relative path to the relevant files in the CSV Table macro.
Navigate to CONFLUENCE ADMINISTRATION > Settings > Manage apps > Advanced Tables > Profiles.
Click Add Profile.
- Enter a unique name for the profile in the Profile name text box. For this example, enter BitbucketProfile in the text box.
- Select URL from the options in Profile type.
Enter https://bitbucket.org/bobswift-test/ in the URL to CSV Data text box.
Click Save profile to create the profile.
To use this profile in a Confluence page:
- Search for the CSV Table macro and edit it.
- Select Profile in Data source > Method of locating script.
- Select BitbucketProfile from the Profiles drop-down list in the editor.
- Enter the relative path to the CSV file in the URL to of CSV data parameter.
- Click Save.
...
You can skip creating a profile entirely and enter an absolute URL in the URL to of CSV filedata parameter.
- In a Confluence page, search for the CSV Table macro and edit it.
- Enter https://bitbucket.org/bobswift-test/testfiles/raw/4e437c71635ac79f796456495807fb6c65218c84/Rows-5k.csv in the the URL to of CSV file data parameter.
- Click Save.