I have requirement to migrate and upload bulk of HTML's /PDF's/Excel sitting in one folder into Confluence, Is there a way or example or Java code to acheieve programatically ?
Hi @Venu_Joguparti ,
The following plugin may be helpful to you
Confluence Command Line Interface (CLI)
Add multiple attachments from a directory matching a regex pattern. Use minor to avoid notifications. Use recursive to find files in sub-directories.
Thank you @Ollie Guan for prompt response , I will take a look on to that I am very new to this , I have bunch of files in my hard disk and want to upload , any examples how can I use that interface
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Venu_Joguparti - Here's an example command with the Confluence CLI to upload files from a particular directory to a specific page in a space:
acli --action addAttachments --space "myspace" --title "my page" --file "./directory/containing/files/" --server "wiki.myserver.com" --user "myUserName" --password "myPassword"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Michael Kuhl {Appfire} I tried with below command , looks like i am missing something
acli --action addAttachments --space "XXXX.atlassian.net" --title "my page" --file "./Downloads/comingsoon_12/comingsoon_12/" --server "wiki.myserver.com" --user "vXXXXX@gmail.com" --password "XXXXXXX"
I have html/css/pdf in local disk under downloads and trying to upload in confluence space which i created
Can you correct if i missing something
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.
Two things to make sure of with --space:
Also, I just noticed that your are using Confluence cloud so you need to make two other changes:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Michael Kuhl {Appfire} thank you for the prompt response . I tried with the below command as per your input
acli --action addAttachments --space teamspace --title teampages --file ../XXXXXXX/Development/XXXX/News/DEV_C_Conference_2014/ --server XXXXX.atlassian.net --user vXXXXXX@gmail.com --token XXXXXXXXXXXNzXXXXXXX
Getting the below error when i run the above command
Error
Parameter error: Unknown flag 'space'. Action was addAttachments for the jiracloud client. Other related clients were also attempted without success.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like the problem is with your server parameter. Notice in the error it states: "Action was addAttachments for the jiracloud client". It thinks you want to perform the action on Jira cloud but Jira doesn't have spaces. I suspect the full url for your Confluence instance is xxxxx.atlassian.net/wiki. With that URL it should use the Confluence Cloud client.
To be extra sure you can also add confluencecloud after acli like so:
acli confluencecloud --action ....
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.