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
Want to leave your mark on Confluence? One winner will have their whiteboard design added into Confluence for all users to access! This is your chance to showcase your creativity, help others, and gain recognition in the Confluence community.
Share your template today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.