Can I get custom field's display value instead of the tag value in a ticket #452
-
I get the value of a custom field by:
However, the value obtained by this method is the tag value |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @xg578962913 Zendesk APIs requires that you use the Ticket Fields API : https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_fields/#show-ticket-field You should probably cache your TicketsFields definition and then from the customField you get the Field and you use the mapping |
Beta Was this translation helpful? Give feedback.
Hi @xg578962913
Zendesk APIs requires that you use the Ticket Fields API : https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_fields/#show-ticket-field
In java: https://github.com/cloudbees-oss/zendesk-java-client/blob/master/src/main/java/org/zendesk/client/v2/Zendesk.java#L603-L610
You should probably cache your TicketsFields definition and then from the customField you get the Field and you use the mapping
https://github.com/cloudbees-oss/zendesk-java-client/blob/master/src/main/java/org/zendesk/client/v2/model/Field.java#L38