webinarAttend our Q3 feature roundup webinar on November 21, 2019 Save your Seat

Start a new topic
Solved

Webhook - Update subject line when ticket logged

Hi all,


Hoping someone could help with changing the ticket subject when a ticket is logged.

I have a form field that specifies a list with 3 levels, and I want the subject to change to whatever was selected in the list.

Here is the code that I have specified in the webhook:

{“subject”: "{{ticket.untitled}} - {{ticket.cf_111}} {{ticket.cf_222}}"}


Along with the callback URL that I used:

https://DOMAIN.freshservice.com/api/v2/tickets/{id}


Attached are screenshots of how it is setup.


Many thanks in advance!

2.jpg
(45.7 KB)
1.jpg
(35.3 KB)

Hi James,


You can use the below callback URL where the {{ticket.original_id}} placeholder refers to the Ticket ID(1 if the ticket ID is #INC-1)


https://domain.freshservice.com/api/v2/tickets/{{ticket.original_id}}


Please try the below payload for updating the subject line

{"subject": "{{ticket.cf_111}} {{ticket.cf_222}}" }


1 person likes this

Hi Thushan,


That worked perfectly, thanks for help!


Regards,

James

Login or Signup to post a comment
JS Bin