It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to update a page from python?

I've got a functional testing daemon that verifies the status of a specific environment. I would like it to programmatically update a confluence page with the results of the test, each time the test is run. Is that possible?

If so, then how can I do it in Python?

And, if not in Python, is there an example in Java that I can use as a starting point?

2 answers

1 accepted

4 votes
Answer accepted

There are plenty of examples, just google for it, anyway - here is one

import xmlrpclib

client = xmlrpclib.Server(CONFLUENCE_URL,verbose=0)

page = client.confluence2.getPage(authToken, pageid)
page['content'] = newcontent
client.confluence2.storePage(authToken, page)

Confluence Command Line Interface has the storePage action. Construct a command string and run :).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in United States

Live! - Austin ACE -- Summer BASH 2019

Hey Austin! Come join us for our 2019 Atlassian Community Summer BASH as we transition ourselves into party status! Bring an attachment, log a great time, and collaborate with new friends as we celeb...

11 views 0 0
View post

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