In the end of a batch I need to upload a resultant MS Word document as a page in Confluence using programmatic way as REST API.
In the web portal the tool that works for me is Import Word Document from the link below but I don't see how it can be programmatically called.
Any other tools are welcome,
It is a possible solution but has two disadvantages which makes it not acceptable to me:
1. It produces not a native Confluence (HTML) page - The viewword macro just embed an iframe preview and the editing of the page is possible only with spacial add-ins.
2. Using Webdav suppose to mount permanently the 'file system' of the Confluence on my web app server which is generally not a good idea.
I am not Georgi but I'd still like to share my solution: I converted all word files to txt-files using pandoc (pandoc.org) like so:
pandoc $file -f docx -t jira -s -o $file.Replace(".docx", ".txt")
Then, I imported these txt-files using the Atlassian Command Line Interface (see Marketplace) like so:
acli prod --action storePage --file $fileName --space $spaceKey --title $title --parent "My Parent Page"
This I did for hundrets of files using a powershell script. The results where pretty decent for well-formated Word-files.
Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events