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?

Tags notification notifications code template Tier-2
Asked by Charles Plemons on Wed 10/14/15 9:34 AM Last edited Wed 10/14/15 9:46 AM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Phil Curl Wed 10/14/15 10:31 AM

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.

Phil Curl

0 of 2 users found this helpful.