Wiki markup issue when creating confluence page from python script


I have a python script to create a confluence page and put some content in it.

With raw text there's no problem, but when i want to add some chart or tables using wiki markup, confluence text editor consider it as raw text.

For example, manually adding the below code in a wiki markup box will display a chart from a xlsx file. If you do it as raw text and just copy/paste, no chart will appear, just the text.

{chart:type=line|3D=false|title=My Title|dataDisplay=true|width=900|height=300|showShapes=false|categoryLabelPosition=up45|legend=true

So my question is, what do I have to had for Confluence to understand that i want a markup format?


2 answers

If I understood you right, you want to paste Python generated tex (including wiki markup) into a confluence wiki page?

Manual copy/paste?

From the menu use insert => markup (or ctrl-shift-d) to get a box, to paste your markup into.

I know, this is an old question, but maybe somebody else stumble upon it :)

What I was searching for, was:

a) use Confluence Wiki markup language for an own flask based wiki project (instead of markdown)

b) how to programmatically insert wiki pages into confluence with Python.




You need to convert it to storage format (convertWikiToStorageFormat) or use storage format for the text.

For those looking at this question that don't want to do programming, Confluence Command Line Interface handles all this including default handling of wiki markup conversion.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

405 views 2 13
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you