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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

77 views 0 4
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