Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Posting HTML on Confluence using Python


I am on Confluence server and I am trying to post a Dynamic HTML file onto Confluence through python script. I know this HTML works because it shows up when being posted using editor with the default HTML macro.

However, I need to automate this process therefore I am using Python Script. So far I was able to use the Python REST API library to create a page and post simple HTMLs. I got the HTML macro to work as well using this storage format:

"""<ac:structured-macro ac:name="html"><ac:plain-text-body><![CDATA[ {the HTML} ]]></ac:plain-text-body></ac:structured-macro>"""
But when I go to post the this dynamic HTML that has JS and CSS, nothing shows up. When I open the editor of this page, the correct content inside HTML macro is there. This is strange for me and I am not sure where to go from here. Any help is appreciated! 

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events