Wiki

Clone wiki

Documents Add-On / CLI Uploader v1.0.0

Documents CLI Uploader

The content of this page applies to the following app version(s):

  • CLI Uploader 2.0.0
  • CLI Uploader 1.0.0

Documents CLI Uploader is a command line interface (CLI) Java application that allows uploading files into Documents app. You can use this CLI application to build your own tool for migrating documents from another document management system towards Documents. The files are imported as new documents, no matter if they already exit or not.

NOTE If you want to synchronize files or folders with Documents via the command line interface, please use Documents CLI Sync. If you want to import or synchronize files or folders with a desktop GUI utility, please use Documents Bulk Uploader.

Prerequisites

  • A version of Documents app installed in your Jira instance, which is compatible with this version of Documents CLI Uploader. Click here to see the version compatibility.

Uploading files with Documents CLI Uploader

  • Download the newest version of Documents CLI Uploader compatible with your Documents app. See the Prerequisites section.
  • Extract the content of the ZIP archive on your computer
  • Open the app.properties file from the bin folder for editing.
  • Set the application settings as indicated in the table below and save the changes.
SettingDescriptionExample of valid value
jira.base.urlThe Jira Base URL. Make sure not to specify the trailing slash at the end.https://myjiraserver/jira
jira.usernameThe Jira users used for authentication. The user must have the necessary permissions for creating documents.admin
jira.passwordThe Jira user's password.password
jira.ignore.ssl.cerficate.errorsSet to 1 if you want the potential SSL certificate errors to be ignored. Otherwise, set it to 0.1
  • Open a command prompt and execute doc-upload.bat from the bin folder with the following command line parameters:
ParameterDescriptionExample of valid value
Param 1Key of Target Folder - the key (Unique ID) of the folder in which the source file will be uploaded."102"
Param 2Document Title - the title of the document."My Document"
Param 3Source File Path - the local path of the file to be uploaded."c:\My Documents\FileToUpload.txt"
Param 4 (optional)Sub-folder structure to be created in the target folder. The uploaded file will be created in the last sub-folder."Folder1/Folder2"


Example:
doc-upload.bat "102" "My Document" "c:\My Documents\FileToUpload.txt" "Folder1/Folder2"

In this example, a document of type File having title "My Document" and the file "FileToUpload.txt" attached will be created in sub-folder Folder1 > Folder2 of the target folder that has key 102.

Updated