I was trying to create a request using JIRA, which needs severity to be present
Example:
by post body is
{
"fields":{
"project":{
"key": "TEST"},
"summary": "TEST",
"description": "TEST",
"issuetype": {
"id": "101"
},
"components": [
{
"id": "35006"
}
]
}
}
*******
output comes back as
{ "errorMessages": [], "errors": { "customfield_21681": "Severity is required." }}
******
I tried to add severity at multiple places wthin body it is not working
My two fellow leaders are asking the right questions.
In order to help you a bit more, according to your error message, the severity in your Jira has the custom field id: customfield_21681
Now you need to know what type of field it is - is it a text or a select field or something else? That's influencing how you need to send it to Jira. This example assumes it's a select field:
{
"fields":{
"project":{
"key": "TEST"
},
"summary": "TEST",
"description": "TEST",
"issuetype": {
"id": "101"
},
"components": [
{"id": "35006"}
],
"customfield_21681": {
"id": "ENTER ID OF THE OPTION"
}
}
}
If you need to know the id, you can get it via the createMeta endpoint. Also for more examples, you could check out the create Issue docs.
Cheers,
Matthias.
What type of field is severity? Also, try adding it as customfield_##### instead of severity. Might be a typo in how it is listed in Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How have you tried to send a severity?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.