I am trying to create an issue using API v3.
I successfully got that API token using oauth with next permissions:
offline_access write:jira-work read:jira-work
With this API token I can successfully get the issue by id, but I can’t create an issue. I am getting response with status 400:
{
"errorMessages": [ "No Issue Create payload supplied"],
"errors": {}
}
And here is a body I am passing:
{
"fields": {
"project": {
"id": "10009"
},
"issuetype": {
"id": "10054"
},
"summary": "test",
"assignee": null,
"priority": {
"id": "3",
"name": "Medium",
"iconUrl": "https://some-org.atlassian.net/images/icons/priorities/medium.svg"
},
"labels": [],
"customfield_10003": [],
"customfield_10002": [],
"customfield_10092": [],
"reporter": null
},
"update": {},
"watchers": [
"60e6a285131bf80069c310b0"
],
}
I used almost the same body as I create the issue using UI, except externalToken key in body.
Please help to solve this issue