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

Settings for the new field

Internal name

watchusers

Display nameWatchers
Data type

string 

Additional options that show after you specify data type:

  • check "Dimension"
  • check "Multiple values"
  • "," as "Split by" value
Additional advanced settings
json_fields = ["watches"]

Javascript code:

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


Global calculated field


[jira.customfield_watchusers]
name = "Watchers"
data_type = "string"
dimension = true
multiple_values = true
split_by = ","
json_fields = ["watches"] #this line is mandatory
javascript_code = '''
if (issue.fields.watches) {
    return issue.fields.watches.watchers;
}
 '''