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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Posted Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

42 views 0 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