Confluence CLI has problems with markdown ModifyPage

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

./ -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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

463 views 6 6
Join discussion

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