Overview
Attach File Manager For Jira provides a REST API to enable you to retrieve and attach a docuement from an URL outside of the Jira context.
Attach File :
You will need to perform an HTTP Post on the following URL :
<Base-URL>/rest/kepler/1.0/file-attach/base64
Body :
{ "attachedFiles":[ { "filename":filename1, "customfieldId":customfield_id, "issueKey":issueKey, "content":fileAsBase64 }, ...... ] }
Retreive file:
Base URL
The base URL to call the file Attach File Manager For Jira is:
<Base-URL>/rest/kepler/1.0/file-attach/download/Base64(${customfield_Value})/${customfield_id}
Required Parameters
Parameters | Explanation |
---|---|
customfield_Value | the value of the custom field |
base64(customfield_Value) | The encoded value of the custom field |
customfield_id | The String id of the custom field example: customfield_10000 |
An example of usage :
http://192.168.1.42:8410/rest/kepler/1.0/file-attach/download/aW1hZ2UwMDItMTU3OTUwNDI3NjA4OGN1c3RvbWZpZWxkXzExMDAxLnBuZw==/customfield_11001