Count of Votes
eazyBI for Jira
Calculated field to retrieve count of votes for each issue. You can import this field as a measure.
Account-specific calculated field
Account specific calculated fields are defined in Source Data → Import options.
Settings for the new field
Internal name | cf_votes |
---|---|
Display name | Count of votes |
Data type | integer |
Measures | ✓ |
Additional advanced settings | json_fields = ["votes"] |
Custom JavaScript code:
if (issue.fields.votes) { return issue.fields.votes.votes; }
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_cf_votes] name = "Count of votes" data_type = "integer" measure = true json_fields = ["votes"] #this line is mandatory javascript_code = ''' // Insert here the Custom JavaScript code '''