JIRA REST API Add Attachment JIRA 7 OnDemand

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

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).

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

415 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you