Hi!
I’m in the process of creating a dynamic macro for Confluence. Macros within my macro does not work properly and it seems to be due to the fact that pageId, pageVersion etc. is missing in the request of the embedded macro - ...?pageId=&pageVersion=&pageTitle=&...
.
Currently I’m using the Confluence Cloud REST API and /rest/api/content/{id}/history/{version}/macro/id/{macroId}
to fetch the macro body and then /rest/api/contentbody/convert/{to}
to convert it to ‘view’. I thought it was reasonable that the contentIdContext
in the convert request would provide the necessary data, but that didn’t make any difference for me.
My two questions are:
- How do I make Confluence data such as pageId accessible to macros within my macro?
- What is the purpose of the
contentIdContext
and thespaceKeyContext
parameters in the convert request?