I am trying to update an existing JIRA ticket status from Open to Resolved. When I use below JSON.
{
"transition": {
"id": "5"
},
"fields": {
"resolution": {
"name": "Fixed"
}
},
"update": {
"comment": [
{
"add": {
"body": "Resolve issue"
}
}
]
}
}
The API response gives me below:
"error": {
"errorMessages": [],
"errors": {
"customfield_28700": "Reason for the Bug is required for Production Bugs"
}
}
I don't know what is wrong here, can someone please help me to fix this problem? Thanks a lot!
The Jira you are trying to update has a validator that requires the entry of a field. Your code is not filling the field in, so it fails validation.
Either remove the validator, or send data to go in the field
From the error message, I'd guess you have a field called "Reason for the bug" that has been made mandatory. Any admin could have added the validator to the workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm facing the same error.
How did you resolve it?
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.