Jira REST API not creating story issue

Hi,

I’m trying to make a Javascript REST API call to create a story issue in my project. I’m trying to first make it function in Postman but i’m getting the error:

{
    "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.",
        "customfield_11050": "Field 'customfield_11050' cannot be set. It is not on the appropriate screen, or unknown."
    }
}

My JSON payload is :

{
    "fields": {
       "project": {
          "key": "UN"
       },
       "summary": "Test REST",
       "description": "Creating of an issue using project keys and issue type names using the REST API",
       "issuetype": {
          "id": "10000"
       }
   }
}

All topics founded tell that the problem comes from the the properties not existing but it does :

1 Like

Welcome @anon65975479,

That payload looks valid for a V2 request. Unfortunately, creating an issue can be really tricky because it is so dependent on the configuration of your instance. For example, the screenshot helps but it’s not sufficient to confirm that screen is the one that applies to the issue type you are creating. The canonical recommendation is to first call createmeta to see what your configuration is expecting.

However, the error messages suggest a problem with the issue screen scheme. If the appropriate screen scheme has a value for screens.create, then you aren’t looking at the right screen.