Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding interactive elements via the python API

Ethan.Ringel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 8, 2022

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

0 votes
Lucas Modzelewski _Lumo_
Atlassian Partner
June 11, 2022

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: https://community.developer.atlassian.com/c/confluence/6  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events