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
T
Thushan Bakthesenan
said
over 1 year ago
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.
Thushan Bakthesenan
said
over 1 year ago
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.
Zach Dugan
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.
Thushan Bakthesenan
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.