Using Liquid markup to customize the formatting and placement of text in comments and email notifications

Return to top
Have more questions? Submit a request


  • Vladan Jovic
    Community Moderator

    Huh, this article helped me a lot! Thank you, Aimee!

  • Dan Ross
    Community Moderator

    can this be used in a Trigger to extract a, then send that ID to an external target, using the Notify Target functionality?



  • Albert Llongueras

    Hi, is it possible to use liquid in the master email template?

  • Chris Bulin
    Community Moderator

    Aimee, I am trying to surface the attachment name and link in the body of a macro. From, it's my understanding that I have to do this with Liquid Markup rather than a simple placeholder. Basically, I don't want my agents to have to retype and link the attachment name. I tried this:


    But that doesn't seem to work for what I want. Do you have a suggestion for how to do this?


  • Kevin Ford
    Community Moderator

    Hey Dan Ross,

    With some iterative attempts, I figured out how to extract the comment ID. The syntax shown at isn't exactly clear on the fact that the "comment" part of "" is the name the iterator for the collection. That's probably as clear as mud so here's how to extract the ID in a modification of the article code.

    {% for comment in ticket.comments %}
    {{}} {{comment.created_at}} {{comment.created_at_with_time}} {{}} {{comment.value}} Attachment: {% for attachment in comment.attachments %} {{attachment.filename}} {{attachment.url}} {% endfor %} {% endfor %}

    You don't have to iterate over all of the comments. If you want to get the ID of the latest comment, the Liquid syntax is {{}} or if you're after the latest public comment, it's {{}}. You can use this to fire off to an external target.


  • Brad Marshall

    Is there any way to get the author's avatar (i.e.,

  • Federico Olmus

    Here is a related article that might also be relevant: Setting up an unformatted email template

    Thank you Aimee!


Please sign in to leave a comment.

Powered by Zendesk