JQL Cookbook: Recipe “Issues with Comments”
Nevertheless it still has some shortcomings. So for example it is not possible to search for all issues having comments – unless you think outside the box. To provide the solution first, this query will give you all issues with comments:
comment !~ "JUST_GIVE_ME_ISSUES_WITH_COMMENTS"
What’s this? Comments can only be used with contains operators (
!~). The one used above is the operator does not contain. So the hack is actually to search for all comments not matching the given string.