Forums

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

Finding the number of comments in issue

Gal Fatal
Community Champion
April 24, 2020

Hi,

I am trying to find an easy way to find issues with many comments.

Atlassian says the number of comments can influence the performance of issue loading and search.  So I would like to sort all issues by the number of commends and check if I have some with too many.

Any idea?

Thanks 

Gal

1 answer

0 votes
Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2020

With Power Scripts for Jira, you can use the function getAllCommentsIds

https://confluence.cprime.io/display/SIL/getAllCommentIds

Which returns an array of comment ids. You can then check the length of that array.

You can use the value in a SIL scripted custom field, or just write your own ad hoc script to list issues with more then x comments, or the issues with the most comments, etc.

Suggest an answer

Log in or Sign up to answer