Filter for the existence of comments on issues

I would like to write a filter that will return any issues that have comments. The only option in JQL I've seen related to comments is the Tilde (~) which I believe indicates "contains."  However, I want to find all issues with comments, not just those, and I don't know how I can do that with ~ because I can't know what the comments might contain. I tried " ", but Jira didn't like the empty string operator.

Any ideas would be appreciated.

Thank you.

Michael Anderson

 

 

 

 

 

 

3 answers

Hi Michael,

JQL Search Extensions adds a bunch of keywords for comments. After installing the plugin you can then use the following JQL:

commentsCount > 0 

Full documentation is here.

0 vote
Alexey Matveev Community Champion Nov 12, 2017

Hello,

you could write such a filter if you have Adaptivist Scriptrunner installed. This plugin has "hasComments" JQL function. You can read more here about this function:

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_hascomments

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

53 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you