Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading attachment to Jira using JavaScript/REST - http 200 - empty response

Jan Thorsplass
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2020

I'm not able to get Jira to accept the binary content of a file - it returns http 200 and [] - nothing else.
If I use base64Encode on the binary content, the file is stored as expected, but Jira doesn't do an automatic decode of this.

Since file is accepted with the encode I assume the multipart/form-data is correctly defined.

So there are two options here:

  • A plugin in Jira that can automatically decode when saving to disk
  • Figure out why it doesn't accept the binary content

Any suggestion or link to similar issues with solution, is appreciated.

NB! I'm not running the Jira instance myself, just integrating to it from another tool where JavaScript is the way to customize.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events