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

0 votes
Accepted answer

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

60 views 4 0
View post

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