I have the following staticContentMacro
defined in the atlassian-connect.json
:
{
"renderingMethod": "get",
"url": "/items/{collection}",
"parameters": [
{
"identifier": "collection",
"name": {
"value": "Collection"
},
"description": {
"value": "The collection"
},
"type": "string",
"required": true,
"multiple": false,
"hidden": false
}
]
}
This should be possible according to the documentation: Macro Input Parameter (atlassian.com)
However, the collection
paramters is not inserted into the request and the {collection}
placeholder is removed.
According to another section in the documentation in (Context parameters), variables in urls are not available for macros:
URL variables are available to any of the page modules, including web panels, web items, general pages and dialog pages, except for Confluence macros.
So how should parameters of macros then be used if not in the URL?