Forums

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

What should be the format of post body to post attachment to jira issue?

Shivam Gupta
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!
January 11, 2021

Hi,

I am working on an application which creates issues on jira. For this, I am using jira rest api.I am using javascript in the application. So, my question is this in what form, should I post the image in order to add an attachment to an issue ? is it base64 or just the file object? I have used both but it gives 415 Unsupported media type error. Please help me in this.

1 answer

0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2021

Hi @Shivam Gupta 

I've implemented this answer in C# and it works successfully - I assume that it shouldn't be too much effort to create a javascript equivalent.

Good luck

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events