REST API on 4.3

Im trying to get my reST php program to ork with out production jira.

This works:curl -u zaasadmin:nagios https://zafindev.com/jira/rest/api/latest/issue/NTJ-1.json

but this doesnt – but it does work on jira7.0

[curl -D- -u zaasadmin:nagios --data @mkissuedatafile -H "Content-Type: application/json" https://zafindev.com/jira/rest/api/latest/issue/
HTTP/1.1 405 Method Not Allowed
Server: Apache-Coyote/1.1
X-AREQUESTID: 940x181150x1
Set-Cookie: JSESSIONID=C6AE356453C5C85E43A4C5061F92CC92; Path=/; Secure
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=AKZE-MI2G-0ILZ-Q016|ed1dd069625462a35803df7d55051e9712164dff|lin; Path=/jira
X-AUSERNAME: zaasadmin
Allow: OPTIONS
Content-Type: text/html;charset=utf-8
Content-Length: 980
Date: Tue, 15 Dec 2015 15:40:23 GMT

<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 405 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource ().</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>[root@zsms-t01 test]#

1 answer

0 vote

The REST API for 4.3 and 7.0 is very different, even the urls are not the same.  Try coding for the urls and calls over at https://docs.atlassian.com/jira/REST/4.3/

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 Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
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