There are several JavaScript examples to count comments in the Community. You can start with those and then improve.
In any case, please read the documentation on how to define and validate the Javascript code before using it (those would be the first two paragraphs): JavaScript calculated custom fields .
There are Community posts on similar use cases:
Hi @chrischarles2002 ,
In the mentioned community post Calculating the number of comments , is an example of how to import comment count using JavaScript calculated custom fields .
To count comments by each author, you may modify JavaScript code. To do this, declare that each issue might have a set (array) of user names who have commented on it and comment count accordingly. To represent names of comment authors in eazyBI, you may use some existing dimension which contains user names, like, Assi…
Hi,
Issue comments form Jira are not imported by default into eazyBI.
However, you could try using a Javascript code in your eazyBI advanced settings to define a custom field that will return the number of comments for an issue.
[jira.customfield_comments]
name = "Comments"
data_type = "integer"
measure = true
javascript_code = '''
if (issue.fields.comment && issue.fields.comment.comments ) {
issue.fields.customfield_comments = issue.fields.comment.comments.length;
}
'''
Later you could imp…
Hi @Daniel_Luevano ,
With eazyBI you can analyze change history that is visible to eazyBI app as well as comments. While eazyBI for Jira Cloud can access all history records with Rest API, the eazyBI for Jira Server version can access only limited part of history records (status transitions, changes in single-select standard fields imported in eazyBI, and logged hours).
You may check which JSON objects are visible to eazyBI in section import options, tab “Additional options” (JavaScript cal…
Best,
Zane / support@eazyBI.com