- Overview
- Report Contents
- Creating the Report Template
- Template Content
- How the Template Works
- Generating the Report
- Report Output Options
- Example
- Summary
- Video demonstration
Overview
The Checklist Items and Image Attachments report template allows users to generate a report from a single Redmine issue that includes checklist items and attached images.
The report displays checklist entries and embeds attached images directly into the report, making it easier to review issue-related tasks and visual references in one document.
The report can be previewed, printed, downloaded as a PDF, or sent by email.
Report Contents
The report includes the following sections:
- Checklist: Displays checklist items associated with the issue, including section headers and individual checklist entries.
- Attached Images: Displays the names of attached images and embeds the images into the report.
Creating the Report Template
To create the report template:
- Navigate to the Report Templates section.
- Click New report template.
- Set the report Type to Issue.
- Enter the report name: Checklist Items & Image Attachments.
- Add a description, for example: Printing the Checklist Items & Image Attachments from a single Redmine issue.
- Select the desired page orientation (Portrait or Landscape).
- Choose whether the template should be available for all projects.
- Enter the report template content in the template editor.
- Save the template.
Template Content
The template uses conditional statements and loops to display checklist items and attached images only when they are available in the issue.
The template content is as follows:
<style>
.checklist-item { list-style: none; margin-bottom: 4px; }
.checklist-done { text-decoration: line-through; opacity: 0.7; }
.checklist-badge { font-weight: bold; margin-right: 6px; }
</style>
{% if issue.checklists.size > 0 %}
<h3>Checklist</h3>
<ul>
{% for check in issue.checklists %}
{% if check.is_section %}
<li><strong>{{ check.subject }}</strong></li>
{% else %}
{% if check.id_done %}
<li class="checklist-item checklist-done">
<span class="checklist-badge">☑ [Checked]</span> {{ check.subject }}
</li>
{% else %}
<li class="checklist-item">
<span class="checklist-badge">☐ [Unchecked]</span> {{ check.subject }}
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% if issue.images.size > 0 %}
<h3>Attached Images</h3>
{% for img in issue.images.all %}
<p>{{ img.filename }}</p>
<img src="{{ img.asset_base64 }}" alt="{{ img.filename }}" />
{% endfor %}
{% endif %}
How the Template Works
Checklist Section
The template checks whether the issue contains checklist items.
- If checklist items exist, the Checklist heading is displayed.
- Checklist section headers are displayed in bold.
- Individual checklist items are displayed with a checkbox indicator.
- Completed items are marked with an *x*.
- Incomplete items are displayed with an empty checkbox indicator.
If the issue has no checklist items, the Checklist section is omitted.
Attached Images Section
The template checks whether the issue contains attached images.
- If images are available, the Attached Images heading is displayed.
- Each image's filename is displayed.
- Images are embedded directly into the report using the image data provided by the template.
If no images are attached, the Attached Images section is omitted.
Creating an Issue with Checklist Items and Images
To prepare an issue for the report:
- Open the relevant project.
- Create a new issue or open an existing issue.
- Enter the issue details.
- Add checklist items to the issue.
- Organize checklist items into sections, if needed.
- Mark checklist items as completed or leave them incomplete as appropriate.
- Attach image files to the issue.
- Save the issue.
Generating the Report
Once the issue contains checklist items and image attachments:
- Open the issue.
- Access the available report actions.
- Select the Checklist Items & Image Attachments report template.
- Generate the report.
- Review the report preview.
The report displays the checklist and attached images based on the information stored in the issue.
Report Output Options
From the report preview, users can:
- Send by email – Send the generated report by email.
- Download as PDF – Export the report as a PDF document.
- Print – Print the report directly.
Example
The video (it could be found in the end of the article) demonstrates an issue containing a checklist related to various fruits, with image attachments illustrating the items.
The generated report includes:
- A Checklist section listing the checklist entries.
- Checkbox indicators for checklist items.
- An Attached Images section.
- Image filenames.
- Embedded images displayed directly in the report.
Summary
The Checklist Items & Image Attachments report provides a convenient way to document checklist information and visual attachments from a single Redmine issue.
By combining checklist entries and embedded images into one report, users can create printable or shareable documentation that provides a clear overview of issue-related information.