Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence CLI has problems with markdown ModifyPage

Timothy Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2014

I am trying to append content to an existing Confluence OnDemand page using the CLI. My command is something like:

./confluence.sh -a modifyPage --space xxx --title "Open Project Notes" --noConvert --markdown --content2 '# This is a test.

This is a test.'

However, this change ends up rerendering my content and making existing Confluence macros "show up" in the existing content. Is there a way to prevent this behavior? The simulate option doesn't simulate the change, but debugging seems to indicate that the entire page is rerendered into Markdown, thus deleting the macro prefix (as if I pasted the whole thing into the editor and it was all treated as paragraph text).

I'm using 3.8.0 of the CLI.

My use case is providing a Markdown file or short string to append to the end of the page (project notes), but I don't want to have to manually use the Confluence web interface to do so as we would have our other systems do this automatically using an employee-provided Markdown file.

1 answer

1 accepted

0 votes
Answer accepted
Bob Swift
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.
February 10, 2014

It is most likely a bug. Can you please open an issue to track it and I will look at it.

Timothy Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2014

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events