Component
eazyBI for Jira
Calculated field to return the components for the issue and import it as a separate dimension from a multi-value field.
By default eazyBI creates a new dimension "Component" on Cloud and since version 7.2.
Account-specific calculated field
Account-specific calculated fields are defined in Source Data → Import options.
Settings for the new field
Internal name | eayzbicomponent |
---|---|
Display name | Component |
Data type | string |
Dimension | ✓ |
Multiple values | ✓ |
Split by |
|
Custom JavaScript code:
if (issue.fields.components) { var componentlist = []; issue.fields.components.forEach(function(component) { componentlist.push(component.name.toLowerCase()); }); return componentlist.join(","); }
Global calculated field
Global calculated fields are defined in eazyBI advanced settings.
Here are the settings for the new field definitions. You should insert the JavaScript (the code given above) below the line // Insert here the Custom JavaScript code
. Keep the opening and closing quotation marks. '''
, do not delete them.
[jira.customfield_eazybicomponent] name = "Component" data_type = "string" multiple_values = true split_by = "," dimension = true javascript_code = ''' // Insert here the Custom JavaScript code '''