Versions Compared

Key

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

...

  1. Go to Manage Apps → Macro for Assets → Configuration

  2. Click the API tab.

...

To enable API access you need to generate an access token.

Click the Generate Access Token - button to generate one or more tokens.

By default the access token will be applicable for all projects spaces with Read and Write permissions.

Click the Edit link to edit token permissions

...

token = the access token (scope must be READ and projects space must match issue projectpage space)

pageId = the page to read macro configuration values from

...

Response Body:

Code Block
languagejs
[
 [
    {
        "id": "rxt-95ae25ba-0759-4b4e-a40f-edbdc7194067",
        "configuration": {
            "columns": [],
            "iql": "objectType=\"Jira Users\"",
            "displayAs": "AS_TABLE",
            "pageSize": 5,
            "schemaId": "4",
            "connectionId": "45157a8a-79ad-46f7-b920-c21211bf79ec",
            "tableOptions": {
                "linksEnabled": true,
                "downloadEnabled": false,
                "printEnabled": false
            }
        }
    }
]

400 BAD REQUEST When request is invald

Body:

Error message describing the problem

Info

Note: Verify parameters to resolve this issue

401 UNAUTHORIZED When request is unauthorized.

...

token = the access token (scope must be WRITE and projects space must match issue projectpage space)

pageId = the page to store the macro config on values from

...

An array of macro configuration, use multiple configuration JSON objects to update multiple configuration configurations on the page. Note: To update a single value this still has to be an array containing the single value entity.

...