Skip to content

[BUG] zendesk-new-ticket-comment-added returns incomplete data #18260

@Afstkla

Description

@Afstkla

Describe the bug
The zendesk-new-ticket-comment-added webhook trigger is not properly parsing/returning the complete ticket comment data. The event emitted contains incomplete information compared to the raw webhook data received.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a workflow using the zendesk-new-ticket-comment-added trigger
  2. Add a comment to a Zendesk ticket to trigger the webhook
  3. Observe the event data emitted by the trigger
  4. Compare with the raw webhook data received

Expected behavior
The trigger should emit complete ticket comment data including:

  • Correct ticket_id matching the actual ticket ID (e.g., "32" not "30064054559517")
  • Complete value field containing the full comment text
  • All other relevant fields properly parsed from the webhook payload

Current behavior
The trigger currently emits incomplete/incorrect data:

{
  "id": 30064117810589,
  "account_id": "[REDACTED]",
  "parent_id": 30064117810461,
  "ticket_id": 30064054559517,
  "author_id": "[REDACTED]",
  "created_at": "2025-09-03 12:56:17.000000000 +0000",
  "via_id": 5,
  "via_reference_id": null,
  "is_public": false,
  "type": "Comment",
  "value": "\"Beste [NAME]",
  "value_previous": null,
  "value_reference": null,
  "updated_at": "2025-09-03 12:56:17.000000000 +0000",
  "notification_sent_at": null
}

Issues:

  • ticket_id should be "32" (the actual ticket ID) not "30064054559517"
  • value is truncated to just "Beste [NAME]" instead of the full comment text

Raw webhook data received
The webhook payload contains the correct information in the body.ticketId field and full comment data in body.ticketComments:

{
  "body": {
    "ticketId": "32",
    "ticketComments": "[#<Comment id: 30064117810589, account_id: [REDACTED], parent_id: 30064117810461, ticket_id: 30064054559517, author_id: [REDACTED], created_at: \"2025-09-03 12:56:17.000000000 +0000\", via_id: 5, via_reference_id: nil, is_public: false, type: \"Comment\", value: \"Beste [NAME],\\n\\nBedankt voor je bericht en je geduld....\", value_previous: nil, value_reference: nil, updated_at: \"2025-09-03 12:56:17.000000000 +0000\", notification_sent_at: nil>, ...]"
  }
}

Additional context

  • The trigger appears to be parsing some internal Zendesk ID instead of the user-facing ticket ID
  • Comment text is being truncated instead of returning the complete value
  • This affects workflows that need to process complete ticket comment data
  • The full comment data is available in the webhook payload but not properly extracted

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions