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


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 Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

168 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot