The Excel template based export enables R4J users to export requirements into a custom Excel template. A template is an Excel file containing placeholders for fields in Jira issues. The export process iterates over a set of Jira issues and inserts rows with the values of the fields of the issues in Excel as indicated by the placeholders.
Export is available in the R4J Tree View. You first select a folder or issue, then in the R4J menu you select Export > Export Template. Finally you choose a template from the list of available templates. The Excel file is generated and can then be saved locally. The generated file contains a log of any errors.
The template file can contain any Excel content as well as certain placeholders. The exported file is identical to the template, except that the placeholders are replaced with the values of fields in the Jira issue result set. When the export process encounters a row containing expressions of the form [[name]] in one or more columns, where “name” is the name of a Jiraissue field, it replaces that row with the values of the named fields of the first issue in the result set. It then inserts new rows after this row, one row for each of the remaining issues in the result set.
Examples of templates
Typically, a template file contains a header row with names for each of the Jira issue fields to be exported in columns. The next row contains placeholders for those fields in corresponding columns. Above and below these two rows the template can contain anything. For example, it could contain an explanation of the information being presented in the file.
If there are three issues in the result set, the exported file contains four rows, the first as seen above, and three after that for the issues with columns containing the values of the fields key, status and summary.
More than one placeholder may appear in a column and literal text can be included for purposes such as formatting. In the following example, instead of having the key and summary appear in different columns, as above, we put the values into a column together, separated by a colon and space:
Additionally, the special placeholders [[$header]] and [[$requirementsPathSplitted]]may be used. The first appears in the header row and the second appears in the same column of the next row. Here is an example of such a template (template_requirementspathsplitted.xlsx):
When the export process encounters rows containing these expressions it splits the folder path into its elements and inserts columns for each element. The header for the first element of the path is the name of the project, and the headers of the remaining elements are “Level 1”, “Level 2” and so on. The following rows contains the values of the elements of the path for each issue in the corresponding column.
The following fields may appear as placeholders. In addition, all custom fields may be used.
A custom field can be referred to either by its name (e.g. Classification) or by its internal Jira ID in the format customfield_<ID> (e.g. customfield_10221).
version names (comma delimited)
attachment names (comma delimited)
text of comments (comma delimited)
component names (comma delimited)
version names (comma delimited)
“true” if child issue, “false” otherwise
issue type name
labels (comma delimited)
issue keys (comma delimited)
parent issue key if issue is a subtask, otherwise no value
the path of the issue in the project tree
priority display name
subtasks issue keys (comma delimited)
absolute URL of the issue
number of votes
display names (comma delimited)
Only single sheet Excel templates are supported.
Exporting attachments is not supported.
Export is only available from the R4J Tree View, not from the standard Jira search results in the issue navigator. (This means you cannot determine the exported result set using JQL or saved queries.)