Description
This article illustrates how to create a profile in 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:
- An absolute URL in a profile
- A base URL in a profile
- An absolute URL directly instead of via a profile
...
Info |
---|
The examples on this page use the CSV Table macro. Refer to the JSON Table macro documentation to know more about the macro's parameters relevant to profiles. |
Anchor at810_HowTo_CompleteURL
at810_HowTo_CompleteURL |
...
at810_HowTo_CompleteURL
Using an absolute URL in a profile
at810_HowTo_CompleteURL |
You can create a profile by providing the complete URL for the Graphviz to access the CSV or JSON content.
Navigate to CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > Graphviz Configuration > 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 BitbucketFullURL in the text box.
- Select URL from the options in Profile type.
Enter https://bitbucket.org/bobswift-test/testfiles/raw/66f9cf5ba2bfe3890caf9dc2d89e81b59210a5e6/digraphRows-5k.csv in the URL text box.
Click Save profile to create the profile.
To use this profile in a Confluence page:
- Search for the Graphviz CSV macro and edit it.
- Enter BitbucketFullURL in Profile and Select Profile in Data source > Method of locating script.
- Select BitbucketFullURL from the Profiles drop-down list, and then, click Save.
Anchor
...
at810_HowTo_FixedURL
at810_HowTo_FixedURL |
...
at810_HowTo_FixedURL
Using a base URL in a profile
at810_HowTo_FixedURL |
You can create a profile by providing a base URL and then, enter the relative path to the relevant files in the Graphviz CSV macro.
Navigate to CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > Graphviz Configuration > 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 Graphviz CSV macro and edit it.
- Select Profile in Data source > Method of locating script.
- Enter BitbucketProfile in ProfileSelect BitbucketProfile from the Profiles drop-down list in the editor.
- Enter the relative path to the CSV file in the URL to Graphviz fileCSV data parameter.
- Click Save.
Info |
---|
This method allows multiple users to access a profile across pages and instances of the Graphviz macro CSV Table and JSON Table macros. |
Anchor
...
at810_HowTo_AbsoluteURL
at810_HowTo_AbsoluteURL |
...
at810_HowTo_AbsoluteURL
Using an absolute URL directly
at810_HowTo_AbsoluteURL |
You can skip creating a profile entirely and enter an absolute URL in the URL to Graphviz CSV file parameter.
- In a Confluence page, search for the Graphviz CSV macro and edit it.
- Enter https://bitbucket.org/bobswift-test/testfiles/raw/4e437c71635ac79f796456495807fb6c65218c84/grphvizRows-5k.csv in the the URL to GraphvizCSV file parameter.
- Click Save.
...