The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Wiki markup issue when creating confluence page from python script

Quentin Rubis
June 11, 2013

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 14, 2014

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.


0 votes
Peter Arwanitis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2014

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=)

TAGS
AUG Leaders

Atlassian Community Events