Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Report for comments

Richardson_ Jordan _CGI Federal_ February 10, 2023

Hello, is there a way to create a report using eazyBI for the number of comments on a ticket? If nothing exist currently is it possible to create a custom field to track this information?

1 answer

1 accepted

1 vote
Answer accepted
Walter Buggenhout
Community Champion
February 11, 2023

Hi @Richardson_ Jordan _CGI Federal_,

There is no standard measure for the number of comments on an issue, but EazyBI does let you create additional custom fields (in the advanced settings section), where you can use javascript to add the extra information you need:

[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;
}
'''

You may have a look at this EazyBI Community thread to learn more on how you can then leverage this field (and the set of metrics it will generate further) to achieve what you are looking for.

Hope this helps!

Suggest an answer

Log in or Sign up to answer