Hi,
I am writing a macro that needs a page from Confluence. I have this descriptor:
{
"key": "my-macro",
"name": {
"value": "my Macro"
},
"url": "/macro?page={page}",
"description": {
"value": "macro sample"
},
"outputType": "block",
"bodyType": "none",
"parameters": [
{
"identifier": "page",
"aliases": [],
"name": {
"value": "page"
},
"description": {
"value": "Page to navigate when clicking the button"
},
"type": "confluence-content",
"hidden": false,
"required": true
}
]
}
It retrieves mes as expected the page name that appears in the drop down menu in the page parameter when editing the macro but if the page is not from the same space as the current page it won’t retrieve the space so I am lost when the user adds a page from another space. In server it retrieves “{spaceKey}:{pageName}” in these cases but it doesn’t seem to do it in cloud.
How can I get the space (or better, get the selected page id)?