Custom resolution interval
eazyBI for Jira
The "Custom resolution interval" dimension will show the duration intervals from the issue created date until the custom resolution date (instead of the standard Resolved date) for all issues having this custom resolution date. You may use any two dates instead of the issue creation date and the custom resolution date.
Account-specific calculated field
Account specific calculated fields are defined in Source Data → Import options.
Settings for the new field
Internal name | crint |
---|---|
Display name | Custom Resolution Interval |
Data type | integer |
Dimension | ✓ |
Additional advanced settings | time_unit = "days" time_interval = "duration" intervals = "8,15,31" interval_unit = "days" |
Custom JavaScript code:
if(issue.fields.customfield_NNNNN) { return (Date.parse(issue.fields.customfield_NNNNN) - Date.parse(issue.fields.created)) / 1000 / 60 / 60 / 24; }
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_crint] name = "Custom resolution interval" data_type = "integer" dimension = true javascript_code = ''' // Insert here the Custom JavaScript code ''' time_unit = "days" time_interval = "duration" intervals = "8,15,31" interval_unit = "days"