-
Type:
Suggestion
-
Resolution: Done
-
Component/s: Documentation - All
-
None
-
1
TASK:
Please update the error-example shown in our "Create Issue" example
Doc-Link: https://docs.atlassian.com/software/jira/docs/api/REST/9.3.0/#api/2/issue-createIssue
Issue:
The "error" example we provide in this sample shows that the priority field must be included, however, Jira sets the priority to a default value if it's missing from the request payload.
{
"errorMessages": [
"Field 'priority' is required"
],
"errors": {}
}
Update:
This can be any other error but it cannot be an error where the priority field is missing. For example:
{
"errorMessages": [],
"errors": {
"priority": "Could not find valid 'id' or 'name' in priority object."
}
}
Additional Reference:
- We have a feature request to allow users to enforce 'no default' for Priority but it is not implemented at this time: JRASERVER-13048 - Allow 'no default' for priority