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.
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/
Hey @Alexey Matveev i had tried using 2 also doesnt help.
405 all the time.
am i missing out anything.?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.