All eazyBI for Jira eazyBI for Confluence Private eazyBI

Watchers

Calculated field to retrieve issue watchers. You can import this field as a dimension.

Account-specific calculated field

Account specific calculated fields are defined in Source Data → Import options.

Settings for the new field

Internal name

watchusers

Display nameWatchers
Data type

string 

Dimension

Multiple values

Split by

,

Additional advanced settings
json_fields = ["watches"]

Custom JavaScript code:

if (issue.fields.watches) {
    return issue.fields.watches.watchers;
}

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 codeKeep the opening and closing quotation marks. ''', do not delete them.

[jira.customfield_watchusers]
name = "Watchers"
data_type = "string"
dimension = true
multiple_values = true
split_by = ","
json_fields = ["watches"] #this line is mandatory
javascript_code = '''
  // Insert here the Custom JavaScript code
'''