DATA CENTER AND SERVER | CLOUD

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

The Excel template based export enables the R4J user to upload custom Excel files containing text fragments in accordance with the template language which will be exported as real data.

The template language consists of texts that will allow you to iterate over a set of issues in your Excel document with ease.

Template Language

The template language elements in the Excel Template are declared through an opening [[ marker and a closing ]] marker.

Currently, the template language only supports context items and expressions. 

On this page:

Context Item Types

context item can be a JIRA entities such as JIRA issues, projects, groups, users or text and numbers. For now, it only supports JIRA issue with most of its properties. The proper expression for contexts is [[name]] where "name" is the name of the context property, field or custom field. Example is [[assignee]], [[key]], [[summary]] and [[custom field name]].

Context-items are evaluated and ultimately result in a text, boolean and number.

The following are the supported JIRA issue properties:

  • affectedversions : Version names

  • assignee : Display name

  • attachments : Attachment name

  • comments : Comments

  • components : Component names

  • created : Create date

  • creator : Display name

  • description : Description

  • duedate : Due date

  • environment : Environment name

  • estimate : Estimate

  • fixversions : Version names

  • ischildissue : Boolean whether it is a child requirement issue

  • issuetype : Issue type name

  • key : Key

  • labels : Labels

  • linkedissues : Issue keys

  • parent : Parent issue key when sub-task

  • parentissuekey : Issue key of parent issue in a parent/child relation

  • path : Requirements path

  • priority : Priority name

  • project : Project key

  • resolution : Resolution

  • reporter : Display name

  • securitylevelid : Number context-item

  • status : Status

  • subtasks : Sub tasks issue keys

  • summary : Summary

  • updated : Update date

  • url : Absolute URL to this JIRA issue

  • votes : Votes

  • watches : Watchers

  • name of custom field : Custom field value
    e.g. export of R4J issue revision number

Expressions

An expression is a stand-alone text fragment of the form [[$expression]] where "name" is the name of the expression. The expression text fragment will be substituted during the generation with the evaluation value of the expression.

[[$requirementsPathSplitted]]

This expression provides an auto-filter functionality for the different folder paths.

If this variable is used, columns will be added automatically so that every folder level is in a separate column. e.g. If the path is "REQ\System\Component", 3 columns will be created with the content REQ, System, and Component respectively.

[[$header]]

This expression is used with [[$requirementsPathSplitted]] and determines the starting location for its headers. See this sample template for usage.

The column headers for [[$requirementsPathSplitted]] will always have the 1st column with a "Project" text header with all succeeding columns with the headers "Level 1" to "Level n".

Column Headers

Column headers for the Excel template may be any text or JIRA issue fields. Results of the field sets are exported below its corresponding column.

Template Administration

Read here.

Export Generation

Once you have uploaded a template, you can use it to generate exports in Excel file format. During the export, the texts in the template are evaluated according to the template language.

An Excel file is generated with the expressions replaced with the actual data and then downloaded. The set of issues used depends on whatever issue/s are selected in the project tree.

Generate a new export

via Project Tree View

  1. Switch to the tree view of the project you want to generate a new export on:

    1. either click on Requirements in the main navigation bar and select a project from Current Project or Recent Projects

    2. or select Requirements > View all projects from the main navigation bar and select a project from the list.

  2. Select an item from the project tree.
    The information available to the template used for the export depends on the project tree selection. 

  3. Click on the Export button located in the top right corner and select Export Template... to open the export dialog.

  4. Select the template you want to use for generating the export.

  5. Click on Select to start the export and download the generated Excel file.

When an error occurs during export, the generated export file will contain the error logs.

Sample Excel Template Files

Issue Export

Shows basic excel template usage.

Issue Export with [[requirementsPathSplitted]] expression

Shows usage for [[requirementsPathSplitted]] and header expressions.

Issue Export with [[requirementsPathSplitted]] expression and auto-filters for columns

Shows usage for [[requirementsPathSplitted]] and header expressions with use of auto-filter in excel.

Constraints

  • Currently only supports single sheet template

  • Other JIRA entities not yet supported

  • Tree Folders not yet supported

  • Statements not yet supported

  • JQL or datasets not supported

  • Attachment export not supported

  • No labels