Skip to end of banner
Go to start of banner

reporting_setupTemplate

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 4 Next »

Syntax

 reporting_setupTemplate(templatePath [, useStreaming])

Description

Creates an internal setup configuration associated with an external Excel template.

There can be only one call of this routine per reporting script. Every extra call will trigger an exception.

Parameters

Parameter name

Type

Required

Description

templatePath

string

Yes

The Excel file name. The file should be located in the directory: JIRA_HOME/kepler/reports

useStreamingbooleanNoThis parameter controls the writing process. If true it will allow writing a very large amount of data but it will not allow overwriting any content in the targeted sheets.

Return type

The returned value has no meaning.

Examples:

Example 1:

reporting_setupTemplate("templateFile.xlsx", false);

Example 2:

reporting_setupTemplate("templateFile.xlsx");

Important

The template files must have been created with Excel 2007 or newer. Supported extensions are .xlsx and .xlsm. The older .xls extensions (Microsoft Office versions prior to 2007) are not supported.

  • No labels