최근 검색


최근 검색 없음

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개

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


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


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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물