Cannot create Issue from REST API

alexandros kom February 29, 2012

I'm trying to create a issue with this http://docs.atlassian.com/jira/REST/5.0/#id199290 but I'm getting a 405 "The specified HTTP method is not allowed for the requested resource ()" response.

Does anyone have an idea what i might doing wrong?

1 answer

0 votes
Andrzej Pasterczyk
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.
February 29, 2012

How are you trying to achieve this?

My guess would be your making a HTTP GET instead of POST request.

Andrzej Pasterczyk
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.
February 29, 2012

you need to provide more details on what exactly is in your request and what you get in response (e.g. headers)

alexandros kom February 29, 2012

no,I'm using Poster a firefox plugin and I'm making a POST request

alexandros kom February 29, 2012

the json is something like this:

url: http://xxxx.atlassian.net/rest/api/2/issue

JSON:

{"environment": "2.3", "description": "java.lang.RuntimeException:", "summary": "java.lang.", "project": {"key":"xxxx"}, "components": ["MainActivityThreaded.java:47"], "issuetype":{"id":"2"}}

and this is the response I'm getting:

status: 405 Method not allowed The specified HTTP method is not allowed for the requested resource ()

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events