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

Accepted Answer
2 votes

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
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

404 views 0 9
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