If/Then Conditions in Notification Templates
Is there code syntax to allow me to include certain fields in the Ticket Created (Requestor) notification template based upon ticket type? For example, for most of our notifications, we do not include Due Date and do not want to. However, we have one use case where we really need that on the emails. Is there a way to exclude on all except ones specified? If so, what do I need to put in?
Answer (1)
Hi Charles,
For our email notification templates, we use a popular templating engine called Mustache. While Mustache does not directly support if/then statements, it does provide some nice functionality related to conditionally displaying or hiding content. I would recommend taking a look at their documentation and browsing the features offered: http://mustache.github.io/mustache.5.html . If you have any further questions, please let us know and we will be happy to help.
Sincerely,
Phil Curl
TeamDynamix