Hello,
I'm developing python script which creates more pages in confluence cloud.
I want to add on the pages two nested macros (macro status and macro note)
I have tried like this
and this is how i define the body of the rest api call.
data = { 'title': subject, 'spaceId': space_key, 'body': { 'storage': { 'value': full_body, 'representation': 'storage' } }, 'metadata': { 'labels': confluence_labels } }
When i try to run the script i get error
500 {"errors":[{"status":500,"code":"INTERNAL_SERVER_ERROR","title":"Internal Server Error","detail":null}]}
Can someone give me idea how to solve this? Just to mention If i try to add the macros one by one ( not nested) the script works ok .
Thank you in advance
Is this for cloud? Confluence Cloud doesn't support nested macros.
Which macros are you adding manually?
There is an update on this and now you can use some:
https://jira.atlassian.com/browse/CONFCLOUD-78513
But to better understand, which macros are you adding manually?
If that works, go to advanced details -> storage format.
Use the storage format code on your code.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.