The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

While using Jira API to attach a file to an existing issue getting 500 Internal server error.

jporinchukutty
July 11, 2024

Hi,

 

I am trying to use Jira API to attach a file to the issues we created by calling below AP

rest/api/3/issue/{Issue ID}/attachments

 

While doing so in postman getting 500 error, not sure what is the actual issue.

Please guide.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
jporinchukutty
July 14, 2024

Able to resolve the issue in Postman right now, modified content type as below and it worked.

 

Content-Type  -  multipart/form-data; boundary=<calculated when request is sent>

 

Thanks

0 votes
Fernando Eugênio da Silva
Community Champion
July 11, 2024

@jporinchukutty , Welcome to the Atlassian Community!

Have you added the special header: X-Atlassian-Token: no-check ?

The documentation about add attachment in Jira mention this special header to be included in your REST API call: The Jira Cloud platform REST API (atlassian.com)

Also generally 500 errors are associated with not being able to call the application server, check if you are using the entire url complete with the HTTPS protocol

jporinchukutty
July 14, 2024

Thanks @Fernando Eugênio da Silva ,

 

I do provide X-Atlassian-Token: no-check, but still same error, URL as well same, able to call other api's for get and put.

 

Please suggest for any other chance for this error code in postman.

 

Thanks

TAGS
AUG Leaders

Atlassian Community Events