I'm trying to setup a webhook to get notified on all new comments for a Ticket. I'd like to have the id, comment, and comment author to be sent via JSON to my webhook. Right now I have it somewhat working with the following body:
{
"id": "{{ticket.id}}",
"comment": "{{ticket.comments[0]}}",
}
But unfortunately something like this doesn't work:
{
"id": "{{ticket.id}}",
"comment": "{{ticket.comments[0].body}}",
"author": "{{ticket.comments[0].author_id}}",
}
Notify webhook for new ticket comments
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

To be notified for every comment of every ticket, the best option is to:
If you need more information about how to connect webhooks to triggers, I recommend this article section: Connecting to triggers or automations
Hope it helps a bit :-)