JIRA REST API Add Attachment JIRA 7 OnDemand

Nick Marshall September 9, 2015

Our OnDemand instance was automatically updated to JIRA version 7 recently, and after this happened our REST API calls that add attachments to issues stopped working.  All I get back is a 500 Internal Server Error with no additional information.

The "latest" API documentation posted still seems to be for JIRA 6.4, so I'm unable to tell if anything with this call has changed.  Here is the call I am using: https://docs.atlassian.com/jira/REST/latest/#d2e3247

Any information regarding how this has changed and what I need to do to get it working again would be greatly appreciated.

2 answers

1 vote
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
September 9, 2015

https://docs.atlassian.com/jira/REST/7.0-SNAPSHOT/

I haven't noticed any problem in this area when implementing this for the JIRA Command Line Interface (CLI).

0 votes
mlassau_atlassian
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.
September 9, 2015

If the API had changed and what you were passing in was not right anymore then it should return a 400 Bad Request or similar.

The fact that it is returning 500 means there is a problem on the server, most likely a bug, and you need to see the logs to trace what actually went wrong.

Given that you have a hosted instance, you will want to raise a support ticket so that they can look at your logs for you and investigate.

Suggest an answer

Log in or Sign up to answer