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
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
Posted 3 hours ago in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

25 views 0 2
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