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

Adding interactive elements via the python API

I'm trying to automatically update a page on my company's wiki with the contents of some database tables. All of the content is available, but it's... a lot of content. I'm using the atlassian-python-api python package to send a rendered jinja2 template to the page, via the "update_or_create_wiki()" method. However, anything interactive (with an id="" tag, a button, or <details>) either does not function properly or does not appear at all. I don't believe I can write my own javascript  for this since I don't have access to the <head>, so I've been trying to write everything in in-line HTML. The <details> tag would have been perfect but it doesn't appear to actually hide any content. 

How can I autonomously add an interactive element? Do I need another method from the Confluence class? Or is this a jinja rendering issue?

1 answer

Hi @Ethan.Ringel ,

welcome to the Atlassian Community!

For such detailed and technical question you should try to ask about it in the Developers Community - here is a Confluence category:  

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

235 views 1 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you