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

Christopher Dlugolinski April 8, 2013

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
Answer accepted
Christopher Dlugolinski April 9, 2013

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.

1 vote
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 8, 2013

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
TAGS
AUG Leaders

Atlassian Community Events