We are experiencing an intermittent issue when creating issues via the Jira REST API. While most of the time the issue creation works correctly, sometimes we receive the following error response:
<span>{
"errorMessages": [],
"errors": {
"priority": "Field 'priority' cannot be set. It is not on the appropriate screen, or unknown."
}
}</span>
This happens randomly and inconsistently. For example, we can create 10 issues in a row successfully with identical payloads, and then suddenly one request fails with this error.
Here is a sample of the JSON payload we are sending to the POST /rest/api/3/issue endpoint:
<span>{
"fields": {
"project": {
"key": "XYZ"
},
"issuetype": {
"id": "10139"
},
"summary": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "text"
}
]
}
]
},
"reporter": {
"accountId": "712020:71d9b094-740b-4965-a106-668657202774"
},
"assignee": {
"accountId": "5da07d6487dd6f0dcb4d86c3"
},
"priority": {
"name": "Medium"
}
}
}</span>
We have verified that:
The field priority exists and is valid.
The field works for the same project (XYZ) and issue type (id: 10139).
We are using Jira Cloud.
No changes were made to screen configurations at the time of the error.
It seems like a caching or field visibility issue on Jira’s side, especially because the same payload works one moment and fails the next.
Could you please help investigate:
Why this error appears inconsistently?
Is there any caching or delay in field visibility we should account for?
Is there a workaround or best practice we can use to avoid this error?