Trigger - Count Attachments

2 Comments

  • Graeme Carmichael
    Community Moderator

    Linus

    Try this:

    {% for comment in ticket.comments limit:1 offset:0 %}
    {{comment.value_rich}}
    {% unless comment.attachments == empty %}
    You need to log in to download attachments.
    {% for attachment in comment.attachments %}
    {{attachment.filename}} - {{attachment.url}}
    {% endfor %}
    {% endunless %}
    {% endfor %}
    2
  • Linus

    Hi Graeme, that is the solution. Great!

     

    0

Please sign in to leave a comment.

Powered by Zendesk