Ticket Comment extra data - how to create custom values? | Community
Skip to main content

Ticket Comment extra data - how to create custom values?

  • October 21, 2024
  • 4 replies
  • 0 views

Have a third-party app sending create ticket and update ticket requests to Zendesk.  I want to pass custom data with each comment added to the ticket.  Using the PHP SDK, don't know if the SDK is the issue or if it's the endpoint or what I'm trying to do.  Any ideas to pursue to get there?

4 replies

James57
  • October 22, 2024

@feibus - what data are you trying to include?  Comments don't have custom fields per update, so besides adding the data into the comment itself, you can't add metadata per comment.  You could look at using a custom ticket field to store the data instead.


  • Author
  • October 22, 2024

Name and email of the person doing the submitting the request (not an agent or user of Zendesk).  Tried adding tags into the HTML, those got stripped.  Tried adding to via, API overwrites that.  Metadata is readonly, but that would have been a nice place to do it.

A custom field would not work, this needs to be per-comment, not per-ticket.


James57
  • October 23, 2024

I don’t think there’s anything like that you can set on the comments.  What I mean about the custom field is that you would create an JSON array of events in the field, and add a new entry for each comment.  Then you could read it back


  • Author
  • October 25, 2024

Thanks, James.  That might do the trick, will know more in a few days.