Forums

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

Getting 405 while creating an issue in Jira.

sidhant_satapathy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 14, 2018

I am using postman to check the api to create an issue in Jira.

I am able to perform get operations like get project or get transitions but unable to create an issue as it gives me 405 all the time.

url: https://domain/rest/api/latest/issue/

headers:

Authorization as  Basic .....

content-type as application/json

 

curl -X POST \
https://domain/rest/api/latest/issue/ \
-H 'Authorization: Basic c2lkaGFudC5zYX********************=' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: abd14729-0d75-413b-9087-d9fc2b43df5d' \
-d ' {
"fields": {
"project": {
"key": "key"
},
"labels": [
"UI_BUG",
"AUTOMATED"
],
"summary": "automated bug",
"description": "This is an automated bug",
"issuetype": {
"name": "Bug"
}
}
}'

 

Please, help me out with this.

1 answer

0 votes
Alexey Matveev
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 Champions.
October 15, 2018

Hello,

If you are on server you should use the 

/rest/api/2/issue

if on Cloud

/rest/api/3/issue

instead of 

/rest/api/latest/issue/

sidhant_satapathy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2018

Hey @Alexey Matveev i had tried using 2 also doesnt help. 

405 all the time.

am i missing out anything.?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events