Forums

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

Need to Check if Comment is Empty for Issue

Sanjivani Wayal
Contributor
July 5, 2023

Hi,

 

Is there a way to check if the Comment on issue is empty as in JQL EMPTY doesnt work with Comment field , I have Scriptrunner plugin as well maybe if there is any way for it i need to prepare dashboard with this condition .

6 answers

1 accepted

4 votes
Answer accepted
John Funk
Community Champion
July 5, 2023

Hi Sanjivani,

If you are using ScriptRunner, try this:  issueFunction not in commented()

1 vote
Aron Gombas _Midori_
Community Champion
July 6, 2023

If you want to do this without any app, you could do this:

  1. Define a date-type custom field "Last commented on" and add this to your issues
  2. Add an automation rule which is triggered by "Issue commented" and sets this field value to "now"

Now, in JQL you can just say:

"Last commented on" is empty
Sanjivani Wayal
Contributor
July 6, 2023

Hi @Aron Gombas _Midori_  i used commentedon in JQL and its worked for me , Now i have another request to Check if there are comments that were provided within 5 days before the DATE.

 

Where DATE is verification date , iam not able to use CommentedOn because its data type is in days and DATE is in date format .

Can you please help how can i achieve it?

Like John Funk likes this
0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
August 21, 2023

Hi @Sanjen Bariki

here's another Marketplace app that you might like: JXL for Jira.

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets. It also comes with a number of so-called smart columns that aren’t natively available, including the number of comments (along with many other comment-related columns).

This is how it looks in action:

no-comments.gif

As you can see above, you can easily sort and filter by the number of comments, and also use it across JXL's advanced features, such as support for (configurable) issue hierarchies, issue grouping by any issue field(s), sum-ups, or conditional formatting.

(Disclaimer: I work on JXL.)

Any questions just let me know,

Best,

Hannes

0 votes
Sanjivani Wayal
Contributor
July 24, 2023

Hi,

 

I found out the way in JQL we can use commentedon is empty it gives all the issues where no comments are updated.

0 votes
Charlotte Santos -Appfire-
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.
July 6, 2023

Hi @Sanjivani Wayal 

I’m Charlotte, a support engineer at Appfire and I’m here to help you.

Unfortunately, using JQL of Jira, you’ll not be able to do it dynamically.

In the app where my team works, JQL Search Extensions for Jira, you can use this query to display all issues with no comments on them:

commentsCount = 0

Please note that we have created a support ticket https://jqlsearchextensions.atlassian.net/servicedesk/customer/portal/2/SEARCH-1126 in our portal, and we request you to sign in to the portal and let us know the username so that we can mark you as the reporter, and then you will be able to access the ticket. 

Please find the below link to signup to the portal: https://jqlsearchextensions.atlassian.net/servicedesk/customer/portal/2 

Looking forward to hearing from you!

Thanks,
Charlotte

0 votes
Sanjen Bariki
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.
July 6, 2023

Hi @Sanjivani Wayal ,

 

Welcome to Atlassian Community!

As per my experience, There is no way in the Jira to check if the Comment on issue is empty.

It can be possible by the help of Script runner.

 

 

Thanks & regards,

Sanjen Bariki

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events