---
title: "Static Sections for Bulk Export"
canonical: "https://docs.getxporter.app/space/XPORTERCLOUD/428193/Static%20Sections%20for%20Bulk%20Export"
format: markdown
---
> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> > Macro (toc)

## Exporting Multiple Issues with Static Sections

<span style="color: #0d0d0d">At times, you may need to export multiple issues while omitting certain sections of the template. For example, you might want to include a cover section or add information at the end of the document.</span>

[Xporter](https://marketplace.atlassian.com/apps/891368/xporter-export-issues-from-jira?tab=overview&hosting=cloud) <span style="color: #0d0d0d">enables you to specify which sections of the template will be rendered for each issue and which sections will remain static. The notation is demonstrated in the example below.</span>

##### **Sample Code**

```
This is the header of the Bulk Export, this section will be rendered once.
 
&{for issues}
This section will be repeated for every issue.
Issue Key: ${Key}
Issue Summary: ${Summary}
&{end}
 
This is the footer of the Bulk Export, this section will be rendered once.  
```

Figure 1 demonstrates a Word template to bulk export multiple issues.

![Figure 1 - Word template to bulk export multiple issues](media://036d489a-d384-4ad4-8f3c-674259d2f295)

As this notation provides lots of combinations, it's recommended to check the sample template (SampleBulkExport.docx) on the [Samples Page](https://store.getxporter.app/view/13).

Figure 2 demonstrates an Excel template to bulk export multiple issues.

![Figure 2 - Excel template to bulk export multiple issues](media://1938fdbf-417a-4ff3-bf6b-5dff5d5c4a6a)

### Static Sections with Filters

<span style="color: #0d0d0d">You can enhance the functionality of static sections by applying filters to the iterations. This can be particularly useful when you need to export multiple issues and organize them based on specific criteria, such as issue type (e.g., bug or story), into different sections of the template. The notation for this is demonstrated in the example below.</span>

##### **Sample Code**

```
This is the header of the Bulk Export, this section will be rendered once.
 
The following section will list the issues of the type Bug.
 
&{for issues|filter=%{'${IssueTypeName}'.equals('Bug')}}
Issue Key: ${Key}
Issue Summary: ${Summary}
&{end}
 
The following section will list the issues of the type Story.
 
&{for issues|filter=%{'${IssueTypeName}'.equals('Story')}}
Issue Key: ${Key}
Issue Summary: ${Summary}
&{end}
 
This is the footer of the Bulk Export, this section will be rendered once.   
```

Figure 3 and 4 demonstrate a Word template to bulk export with static sections and filters applied to the iteration of issues.

![Figure 3 - Word template to bulk export with static sections](media://b0278857-a273-474e-b112-3e1997767961)

or

![Figure 4 - Word template to bulk export with static sections](media://a63a940b-073a-4327-9019-7222e4219017)

As this notation provides lots of combinations, it's recommended to check the sample template (SampleBulkExportFilters.docx) on the [Samples Page](https://store.getxporter.app/view/22).

Figure 5 and 6 demonstrate an Excel template to bulk export with static sections and filters applied to the iteration of issues.

![Figure 5 - Excel template to bulk export with static sections](media://18618cab-e9fb-4de9-854d-44c87879327e)

or

![Figure 6 - Excel template to bulk export with static sections](media://103dd45f-6b22-49fc-8588-0d35c15231f6)

### Static Sections with Aggregator Iterations

Xporter can aggregate each issue in a Bulk Export to its respective aggregator value.

An *Xporter Aggregator Iteration* is, as its name suggests, an iteration that allows you to export each issue belonging to each aggregator value.

> ℹ️ - There's currently only one type of aggregator iteration available: Bulk Fix Versions. We are planning the release of more types of aggregators soon.
> ℹ️ - This feature is also available in Excel templates.

##### **Sample Code**

```
This is the header of the Bulk Export; this section will be rendered once.
 
The following section will list each version present on a bulk export and its respective issues.
 
&{for bulkFixVersions}
Version: ${BulkFixVersion}
&{for issues}
Issue Key: ${Key}
Issue Summary: ${Summary}
&{end}
&{end}

 
This is the footer of the Bulk Export, this section will be rendered once.   
```

Figure 7 demonstrates a Word template that applies the logic in the code sample above:

![Figure 7 - Word template](media://4ce7cc4e-943d-4550-88ed-d4a35bdc6c4f)

The result is as follows:

![Figure 8 - Result](media://c438f9a8-0adf-4504-8d0b-005627af3e31)

<details>
<summary>Support/Troubleshooting</summary>

If you have questions or technical issues, please [contact the Support team via the Customer Portal (Jira service management)](https://jira.getxray.app/servicedesk/customer/portal/2/user/login?destination=portal%2F2%2Fcreate%2F28) or [send us a message using the in-app chat](https://docs.getxporter.app/space/XPORTERCLOUD/18251779/In-App+Chat+Support).
</details>