Start a new topic

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.

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
JS Bin