Is it possible to search for issues with no comments?

Svante Gustafsson Björkegren
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.
November 11, 2013

Hi,

I want to find all issues (with JQL) that are un-commented, i.e. has no comments at all.

I have looked at the great Advanced Search page, but it only talks about finding strings within comments not if the comment itself exists or not.

Any ideas?

// Svante

3 answers

1 accepted

7 votes
Answer accepted
JamieA
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.
November 11, 2013

Script runner plugin, has hasComments. So you could use

issuefunction not in hasComments()

Svante Gustafsson Björkegren
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.
November 11, 2013

Ahhhh, the Script Runner does it again!!!

How would we survive without it! Thanks Jamie for a great plugin! There are new use-cases for it all the time!

// Svante

Juan Schoonover March 24, 2015

Winner

0 votes
Patrick Martin February 11, 2019

Try this .

issueFunction in hasComments(0)

This is available in JQL without the need to resort to ScriptRunng

Sean Cattanach April 8, 2019

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

Unfortunately that's a Scriptrunner function 

0 votes
Bhushan Nagaraj
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.
November 11, 2013

Download version 1.1 of plugin.

https://bitbucket.org/bhushan154/jira-miscellaneous-jql-functions/downloads

And search for

issue in issuesWithNoComments()

Bhushan Nagaraj
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.
November 11, 2013

Haven't yet tested it. Let me know if you have any issues. Or raise them at https://bitbucket.org/bhushan154/jira-miscellaneous-jql-functions/issues?status=new&status=open

I just renamed the plugin so the new location for the download is

https://bitbucket.org/bhushan154/jira-miscellaneous-jql-functions/downloads

Svante Gustafsson Björkegren
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.
November 11, 2013

great stuff, Bhushan!

I will try it out! Are you planning to launch this plugin at the marketplace?

// Svante

Bhushan Nagaraj
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.
November 11, 2013

Also take a look at www.jiradev.com. It has a bunch of tutorials for JIRA development :)

Bhushan Nagaraj
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.
November 11, 2013

Probably when I have a collection of 25 useful JQL functions ;)

Suggest an answer

Log in or Sign up to answer