Code.
from atlassian import Confluence
conf_site = "My Site"
conf_user = "My name"
conf_pass = "My pass"
page_title = "test"
page_space = "test"
page_id = 1234
conf = Confluence(url=conf_site,username=conf_user, password=conf_pass)
page = conf.get_page_by_id(page_id,expand='body.storage')
page_content = page['body']['storage']['value']
#Create DataFrame
table <- DataFrame
newHTML = table.to_html(index=False)
page_content = newHTML
conf.update_page(page_id,page_title, page_content)
This code works fine.
However, the macro surrounding the table disappears after execution.
What should I do?
Plz... Help me..
Hello @조현성,
Good evening, and welcome to Atlassian Community. Thank you for submitting your question.
It appears you're writing a macro or add-on for Confluence, and you need to update a table using Python. Can you help us to understand what you're trying to do? Please also confirm which version of Confluence you're writing for.
You may also want to ask the Atlassian Developer Community, which focuses more on answering development questions.
Take care, and I hope to hear from you soon!
Shannon | Atlassian Community Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.