# Report Templates

A report template is a pre-defined structure and format for creating reports. It may include narrative sections and custom fields, as well as the ability to select an export template.&#x20;

Report templates save time and ensure consistency in the formatting and presentation of reports within an organization. They save time by pre-populating report sections, such as the introduction, methodology, or threat model. Linking to a custom export template ensures an exported file is branded and structured in the desired reporting methodology.

### Creating a Report Template

<mark style="background-color:yellow;">Step 1:</mark> Click **New report template**.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FqHaFo9JfEVH6PcB3gInn%2Fimage.png?alt=media&#x26;token=8db3c0cb-cf4a-4aaa-9f24-55a32d09776b" alt=""><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 2:</mark> Enter a template name and select a default export template from the pulldown menu, if applicable (i.e., a Jinja template). <br>

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FHVmmkuEXfYQbmJVUYt6v%2Fimage.png?alt=media&#x26;token=621d0886-1320-4870-9cfc-eb811d711c6d" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
The default export template must be loaded first before starting this process.
{% endhint %}

<mark style="background-color:yellow;">Step 3:</mark> Add any custom fields or narrative sections by clicking the appropriate buttons and entering the required information.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FxxB0W6kloG4yB3uU4U9n%2Fimage.png?alt=media&#x26;token=0d317823-1cd0-4b81-915a-e3790aac9112" alt=""><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 4:</mark> Click **Create**.&#x20;

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FiInNFk3dxrKsaV0WUGCq%2Fimage.png?alt=media&#x26;token=3c54a5e4-8dff-4183-8a9f-c31e42e2109c" alt=""><figcaption></figcaption></figure></div>

The template will appear in the list on the **Report templates** tab.

### &#x20;Previewing a Report Template

Report templates can be previewed by clicking **Preview** under the "Actions" column.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F7v63BXf0hZQqm9X12iah%2Fimage.png?alt=media&#x26;token=c81445a2-d80d-4881-97ac-6a0f1a997562" alt=""><figcaption></figcaption></figure></div>

The preview will show any text entered in the narrative section when the template was created. It does not display template custom fields.

<figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FtQlueKjhv3RxHQ9wy8sp%2Fimage.png?alt=media&#x26;token=75794108-7a01-49c8-85cc-bcf6a8c6b2b0" alt=""><figcaption></figcaption></figure>

### Editing a Report Template

Report templates can be edited by clicking **Edit** under the "Actions" column.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F09R8cbbqwq9Zw30Y3gmo%2Fimage.png?alt=media&#x26;token=72ee1b4f-a8f2-4bec-9524-7f72f2f2932e" alt=""><figcaption></figcaption></figure></div>

This will launch a modal, allowing the entire template to be modified. Click **Save** when finished.&#x20;

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FfcQr3QAUJY4DeswOHnf5%2Fimage.png?alt=media&#x26;token=729a965b-fd91-4ab9-b587-a4e901e8ba1b" alt=""><figcaption></figcaption></figure></div>

### Deleting a Report Template

Report templates can be deleted by clicking **Delete** under the "Actions" column.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FpFWpG3Kqd8M37club0cN%2Fimage.png?alt=media&#x26;token=06b89664-5770-4f34-8791-410e12084a3e" alt=""><figcaption></figcaption></figure></div>

A box will appear confirming the action. Click **Delete**.&#x20;

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FT2SwTq25ZnrOcfiAkVJw%2Fimage.png?alt=media&#x26;token=f38ec11f-7045-4e65-a4c5-0275f9c31999" alt=""><figcaption></figcaption></figure></div>
