Hello,
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.
https://confluence.atlassian.com/doc/import-a-word-document-into-confluence-170493136.html
Any other tools are welcome,
Thank you
Is this link https://confluence.atlassian.com/doc/ is not working for you?
It is the same from my initial post and as I mentioned it works not the way I need to access it. It works perfect with a mouse and a web browser but I need to trigger it in command line from a web app server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Georgi Yankov , I'm also in search of a solution importing Word files via REST api. Can you share what was your solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.