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}}" }
Hi Thushan,
That worked perfectly, thanks for help!
Regards,
James
James Bransden
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!