Using Macros & Wiki Markup in Confluence 4.x

I'm attempting to programmatically add content to a page in Confluence via the SOAP api. Essentially, I want to say something like this:

h1. {color:#000000}v3.1 (built Sun Nov 13 15:57:44 EST 2011; deployed %%PROD_DATE%%){color} || Time || Server || | %%BETA_DATE%% | %%BETA_MACHINES%% | | %%PROD_DATE%% | %%PROD_MACHINES%% | {jiraissues:url=http://jiraserver:8080/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+PROJ+AND+fixVersion+%3D+%223.1%22+ORDER+BY+priority+DESC}


In v3.1, I could just paste that into the non-WYSIWYG editor and everything would be fine; however, in v4.x, if I paste that into the editor, it doesn't render- it just shows up as raw text. Since there's no more distinction between wiki markup and wysiwyg, the rendering happens realtime, and adding large chunks of wiki markup kills it. Is there a way to do what I want in v4?

1 answer

1 accepted

In the new editor of Confluence 4 you should be able to paste your wiki markup in the dialog window when you go to Insert => Wiki Markup.

If you want to add content programmatically, there is a helper method convertWikiToStorageFormat in version 2 of the remote API.

Thanks Remo! That was exactly what I needed.

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 Apr 13, 2018 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...

356 views 20 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