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 name | Watchers |
| Data type | string Additional options that show after you specify data type:
|
| 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;
}
'''