Graph by comment count

Hi everyone.

I’d like to draw a graph based on the number of comments on each issue.
(The comment count function is already configured by javascript.)

Rows is Number of comments (Duplicate Except)
Columns is Number of issues

For example,
39 Comment issues one.
31 Comment issues one.
29 Comment issues one.
26 Comment issues one.
25 Comment issues one.
20 comment issues are two.

That is, I want the picture below
How can i make Rows and Columns?
graph

Hi,

Perhaps, you can ensure that you add “dimension = true” line to your advanced settings for Javascript calculated field definition.

[jira.customfield_comments_for_issues]
name = "Comments for Issues"
data_type = "integer"
measure = true
dimension = true
javascript_code = '''
  var comment = issue.fields.comment;
  if (comment && comment.comments && comment.comments.length > 0) {
    issue.fields.customfield_comments_for_issues = comment.comments.length;
  }
'''

Next, you can import “Number of comments” as a separate dimension and use in your report rows with a measure “Issues created” in columns. Then switch to bar chart.

Martins / eazyBI support.