I tried to create a macro html and tabs container on the confluence server but after sending a PUT request I am getting an unknown macro for the tabs container, entering into edit mode I could see there is a tabs container, and for html macro the content is not visible. Please find the code below and help me with this.
I tried with tabs container, tabs-container, etc, and without third-party parameters.
<ac:structured-macro ac:name="tabs-container" ac:schema-version="1" ac: third-party="true"> <ac:parameter ac: name="title">Mt Tabs conatiner</ac: parameter> <ac:rich-text-body>
<ac:structured-macro ac:name="tabs-page" ac: schema-version="1" ac: third-party="true"> <ac: parameter ac:name="title"> Tab 1 </ac: parameter> <ac:rich-text-body> This is content of TAB 1</ac: rich-text-body> </ac:structured-macro>
<ac:structured-macro ac:name="tabs Page" ac:schema-version="1" ac:third-party="true"> <ac:parameter ac:name="title"> Tab 2 </ac: parameter>
<ac:rich-text-body> This is content of TAB 2</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
We are using confluence server 7.19.6.
I am just sending the above content stored in a variable called updated_data using PUT request to confluence server.
data = {
"version ":{
"number" : 3
},
"title": "Testing",
"type": "page",
"body":{
"storage": {
"value": updated_data,
"representation": "storage"
}
response = requests.put(
parent_page_url,
json=data,
headers={"Authorization": f"Bearer {api_token}", "Content-Type": "application/json"},
)
print (response.text
This question is specific to tabs container and tabs page macros. I just informed that html macros are also not working for me. Let me know if more details are required.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@razak shaik welcome to the community!
What is your Confluence version? and what is the script you are using in python? you mentioned HTML macro but your storage format doesn't contain any, can you elaborate further on this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.