How to print a list of files attached to an Issue and their descriptions?

This article will teach you how to print a list of files attached to an Issue and their descriptions.

Firstly, let's see our issue. We got these pictures with descriptions attached.

attached_files.png

Let's use the following code for a Reporter template:

Issue ID: {{ issue.id }},<br>
Issue Subject: {{ issue.subject }}<br> <br>
{% for attach in issue.attachments %}
 <b>Filename</b>: {{ attach.filename }};<br>
 <b>Filesize</b>: {{ attach.filesize }} Bytes;<br>
 <b>URL</b>: {{attach.url }};<br>
 <b>Description</b>: {{ attach.description }}<br> <br>
{% endfor %}

result_printer_files.png

Video demonstration

Was this article helpful? Yes  No
83 from 113 found this helpful