How can I create a report which includes all notes from the main issue and its sub-issues?

This article will show you how to print all child and parent issue notes.

You need to use {{issue.subtask}} and {{issue.notes}} helpers.

Please see the example below.

Main issue attributes:
<div><b>ID: </b>{{ issue.id }}</div>
<div><b>Subject: </b>{{ issue.subject }}</div>
<div><b>Status: </b>{{ issue.status }}</div>
<div><b>Description: </b>{{ issue.description }}</div>
<div><b>Notes: </b>
<br>
{% for note in issue.notes %}
  <div>- {{ note }}</div>
{% endfor %}
</div>
<br>

Subtask attributes:
{% for subtask in issue.subtasks %}
<div><b>ID: </b>{{ subtask.id }}</div>
<div><b>Subject: </b>{{ subtask.subject }}</div>
<div><b>Status: </b>{{ subtask.status }}</div>
<div><b>Description: </b>{{ subtask.description }}</div>
<div><b>Notes: </b>
<br>
{% for note in subtask.notes %}
  <div>- {{ note }}</div>
{% endfor %}
</div>
<br>
{% endfor %}

And the result is this one:

list_issues.png result_printed.png

Video demonstration

Was this article helpful? Yes  No
5 from 5 found this helpful