The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Atlassian Community Events