Reporting¶
PurpleOps allows you to provide .docx
templates marked up with Jinja for generating reports with assessment data. See the sample report in custom/reports/sample.docx
to get you started. Once you've got your custom report, throw it in custom/reports/
and run the report with the generate report functionality.
Exports¶
PurpleOps exports two objects for querying in the Jinja template: assessment
and testcases
. To see available fields, run entire assessment export and view the meta.json
and export.json
file.
Example
The following in a template .docx
will generate a .docx
with the name of the assessment followed by a list of the name of every completed testcase:
{{ assessment.name }}
{% for testcase in testcases %}
{%p if testcase.state == "Complete" %}
- {{ testcase.name }}
{%p endif %}
{% endfor %}