Recent searches
No recent searches
Validation error when setting custom field
Posted Dec 06, 2024
I'm trying to update a custom field value via the API. I'm using a PUT request to /api/v2/tickets/<ticketID>.json I'm getting a validation error as follows:
{
"error": "RecordInvalid",
"description": "Record validation errors",
"details": {
"base": [
{
"description": "Incident vs. Service Request: needed",
"error": null,
"ticket_field_id": 21621964218653,
"ticket_field_type": "FieldTagger"
}
]
}
}
The “Incident vs. Service Request” field is not the field I'm updating. I assume there some is configuration that is making this field required when updating a ticket, although I can't figure out what that config might be? The field has “Required to solve a ticket” enabled, but I'm not trying to solve a ticket, and there are other fields with this setting which don't cause the same problem. Can anyone help me out?
Thanks.
0
2
2 comments
Amie Brennan
If you're trying to update a value inside a drop-down field that is utilised inside ticket field conditionality then you would run into this error. You ideally need to remove the field from the conditional logic config, update the field, then add the field back into the logic
1
James Peterson - Eastern Logic
Mark Ross - were you able to figure this out? We've had the same problem and solved just like Amie mentioned. Otherwise would be curious what is the problem you have run into.
0