How to replace text on wiki with wiki markup through cli?

I am a new new new user and have started using the cli to generate wiki pages in confluence.

It is working just fine but then I need a list created (arbitrary number of items per page), so I need to replace the place holder text with the list.

or is there another way to do this through the cli?

thanks for any help

chris

2 answers

1 accepted

The way I got this to work is through looking at the Tools -> "View Storage Format" of the page it showed that to --findReplace you should pass in the html tags you will get the wiki markup

The below will replace <text to replace> with the list:

--findReplace <text to replace>:"<ol><li>listitem</li><li>listitem2</li></ol>"

Thanks for your input.

How to automate adding text to Confluence pages has some techniques that would apply to this situation.

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 Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

34 views 3 1
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