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

Shivam Gupta 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