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

This widget could not be displayed.

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 Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

170 views 12 7
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