Unable to add attachments to a service ticket through JIRA Rest API using Node Js request

Vamshi Krishna K Nethi
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!
June 28, 2021

Hello,

I was able to add attachment using Postman but when trying to do the same through JIRA Rest API using Node Js request, it does not seem to be working.

I get a status code of 200 but its gives me an empty response and upon checking the JIRA ticket, I couldn't find the attachment.

Below is a screenshot of the code

Screen Shot 2021-06-28 at 9.08.31 AM.png

 

Here is a screenshot of the console. As you can see I have the file and also the correct headers. It does give me a status code of 200 but as said earlier, the response is empty and there is no attachment added to the ticket.

 

Screen Shot 2021-06-28 at 8.58.53 AM.png

 

It's been like 3 days now and I have tried multiple approaches but nothing is working. Any help is appreciated. Thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events