Hi
I've seen multiple threads and did go through JIRA REST tutorial.
1. Generated the Access token to use it for Basic Auth.
Here is the Complete Request:
POST /rest/api/2/issue/ HTTP/1.1
Host: libertydhub.atlassian.net
Content-Type: application/json
Authorization: Basic **************
User-Agent: PostmanRuntime/7.13.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 7f778032-b7f7-4d27-80f8-89b522fd72cd,1b0490eb-28d5-4066-8f49-76000b1cebbf
Host: {hostname}
cookie: atlassian.xsrf.token=B2M1-T7HW-8IGG-KJSU_09cc563dfe0ce7f0af5eb9c19b8df3fa4ec60a35_lout
accept-encoding: gzip, deflate
content-length: 278
Connection: keep-alive
cache-control: no-cache
{
"fields": {
"project": {
"key": "LP"
},
"issuetype": {
"name": "Story"
},
"summary": "REST ye merry gentlemen.",
"description": "Creating of an issue using project keys and issue type names u"
}
}
Error response
{
"errorMessages": [],
"errors": {
"summary": "Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.",
"description": "Field 'description' cannot be set. It is not on the appropriate screen, or unknown."
}
}