Hello,
In Jira Cloud instance Incidents project's incident entity having pre-defined custom field called 'Severity'. Looks like Jira Rest API is providing wrong datatype for Severity field in Incidents Project,
While checking metadata, it says that field type is array but on creation of issue it expect single value.
Metadata URL: https://opshub.atlassian.net/rest/api/2/issue/createmeta?projectKeys=INC&expand=projects.issuetypes.fields
Based on datatype array, if we provide value like below on creation it fail,
Request body:
{"fields":{"summary":"2018_11_19_00_26_09_645_-{AB}","issuetype":{"id":"10001"},"project":{"key":"INC"},"customfield_10022":[{"value":"1 - Critical"}]}}
Response:
{"errorMessages":[],"errors":{"customfield_10022":"Please specify the \"id\" or \"value\" of the severity."}}
As resolution of this bug, we are expecting to provide datatype string in metadata API or allow creation updation with array or object value for severity field.
Hi @priyank patel ,
you need to specify just the id and not the value. So your request should be :
{"fields":{"summary":"2018_11_19_00_26_09_645_-{AB}","issuetype":{"id":"10001"},"project":{"key":"INC"},"customfield_10022":[{"value":"1"}]}}
Hope this helps,
Fabio
Hi @Fabio Racobaldo _Herzum_
can you let me know how will we add the following fields to the object :
1.severity
2.bug type
3.bug environment
4.found by
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.