最近搜索
没有最近搜索
Validation error when setting custom field
已于 2024年12月06日 发布
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
3
3 条评论
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
Mark Ross
James Peterson - Eastern Logic no I haven't been able to resolve it. I'm not updating a drop-down field. Just a custom field with a free text value. The custom field needs to be updated as soon as the ticket is opened, but I can't update it due to this validation error message. The field is only conditional on the ticket being submitted, but I'm not trying to submit the ticket, merely update a custom field.
0