[FREE WEBINAR] 3 Ways ESM in Freshservice helps in Returning to Work | 10 AM PST | 11 AM AEST | 11 AM CEST - 10th Sept SAVE YOUR SEAT

Start a new topic
Answered

Liquid for checking Ticket Type

My objective is to conditionally display some HTML in the Ticket Details page if the ticket is an Incident [the tickets "Type" field is set to Incident]


I'd imagine this would look similar to what I have below, but this exact statement always returns false, thus never displaying the content within the IF statement.


{% if ticket.type == "Incident" %}

       <!-- Conditionally Displayed HTML goes here -->

{% endif %}



I don't seem to be able to find any documentation on a "ticket" object though.


Best Answer

Hi Zach,


Liquid placeholder aren't supported in Ticket detail page. We can use custom codes and trim the heading to make it work for type Incident.


Please reach out to support with the usecase and we will be happy to guide you through it.


Answer

Hi Zach,


Liquid placeholder aren't supported in Ticket detail page. We can use custom codes and trim the heading to make it work for type Incident.


Please reach out to support with the usecase and we will be happy to guide you through it.


Login or Signup to post a comment