Wiki markup issue when creating confluence page from python script

Hi,

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
|yLabel=Seconds|dataOrientation=vertical}
{viewxls:name=myFile.xlsx}
{chart}

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

Thx

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.

regards

Peter

(=PA=)

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

277 views 11 10
Join discussion

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