Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to count the number of comments in JIRA

Tags:

jira

jql

I want to create an Issue Filter that shows me the number of comments per issue, and then sorts by that.

I tried something like:

project = "myProject" AND created >= 2012-06-01 AND created < 2012-08-01 ORDER BY count(comment)

I'm on JIRA 4.2. How do I do this?

like image 993
Huey Avatar asked Aug 05 '12 06:08

Huey


People also ask

How do I count the number of issues in Jira?

Navigate to your dashboard and select the "Issue Statistics" gadget. Find your saved filter and select "Project" as a statistic type and save it. This should give you the issue count for all the projects.

How do I count a query in Jira?

Running a JQL statement from the user interface will not show the count when it is above the limit. However if you call the REST API search method for your JQL the "total" field will show the count.

Does Jira have Versioncontrol?

Implementing Jira + version control means less jumping in and out of different interfaces, which can impact development productivity. P4DTG works with your own Jira server or with Atlassian's Jira Cloud.


1 Answers

The easiest way I can think of is to use the JIRA Toolkit Plugin (by Atlassian) which will add a custom field for counting comments:

number_of_comments_field

Than you could use the JQL to sort by the number of comments. For example, if the custom field is called Comments count, use the following query:

project = "myProject" AND created >= 2012-06-01 AND created < 2012-08-01 ORDER BY "Comments count"

like image 51
Kuf Avatar answered Sep 26 '22 20:09

Kuf