Forums

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

Unable to create issues with Rest API Jira

Fernando_domenike
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!
May 20, 2020

 

I'm trying to create issues with Jira's REST API, but I'm not getting it.

 

{"errorMessages":[],"errors":{"summary":"Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.","parent":"Could not find issue by id or key.","description":"Field 'description' cannot be set. It is not on the appropriate screen, or unknown."}}


 I get the following message:

 

Capturar.PNG

Is my JSON correct?

 

What's my mistake?

1 answer

0 votes
Lasse Langhorn
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.
May 20, 2020

Hi @Fernando_domenike,

Your JSON should be something like this:

{
"fields": {
"project":
{
"id": "10000"
},
"reporter": {
"name": "foo"
},
"summary": "Main order flow broken",
"description": "Order entry fails when selecting supplier",
"issuetype": {
"id": "10000"
}
}
}

Please look at the following links:

Jira Server REST API (All methods)

Jira Server REST API (Create issue example)

Regards

Lasse Langhorn

Suggest an answer

Log in or Sign up to answer