Is there a way to find out the comments that were made in the last 24hrs/48hrs using jql

Mahanth Prudhvi P
Contributor
February 12, 2025

Is there a way to find out the comments that were made in the last 24hrs/48hrs using jql in Jira cloud. I think it is possible in server using issuefunction() in jql but it is not working in Cloud.

Regards,

Mahanth Prudhvi P

5 answers

1 vote
Yuliia_Borivets__SaaSJet_
Atlassian Partner
February 15, 2025

Hi @Mahanth Prudhvi P 

As JQL doesn't work for this case, you might explore alternative solutions:

1) Activity Stream gadget (built-in on Jira dashboard). It allows filtering by comments and dates (it's only possible to choose dates, not hours)

comments jira gadget.png

comments jira activity gadget.png

2) Issue History for Jira (app from my team). You can filter by dates and comments (or any other field). Export and other additional filters available (projects, updated by, etc.)

comments by issue history.png

0 votes
Rahul_RVS
Atlassian Partner
February 14, 2025

Hi @Mahanth Prudhvi P 

There are few options to get this information.

Use Activity Stream gadget / Use Jira Rest API's and build your own custom solution or explore mktplace apps for detailed and flexible reports

If you are open to try a mktplace app, take a look at

Issue History Reports 

The app shows the complete history of changes for your filtered issues and the issue comments as well

Disclaimer - I am part of the app team

IH - Comments.PNG

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
February 13, 2025

Hi @Mahanth Prudhvi P

JQL always and only allows querying issues - so you won't ever be able to query comments using JQL, you'll always only be able to query issues with certain comments on them.

This being said, comment-based querying is somewhat limited in native JQL, too. However if you're open to solutions from the Atlassian Marketplace, you should get pretty close to what you're looking for.

E.g., you may want to have a look at the app that my team and I are working on: 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 long list of so-called smart columns that aren’t natively available, including the last comment, the date of last comment, and many, many more.

This is how it looks in action:

last-comment-date.gif

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

Any questions just let me know,

Best,

Hannes

0 votes
sanam malleswari
Contributor
February 12, 2025

Hi @Mahanth Prudhvi P

To find comments made in the last 24 or 48 hours using JQL in Jira, you can use the 
issueFunction provided by the ScriptRunner plugin. Unfortunately, Jira's native JQL does not support this functionality directly.

issueFunction in commented("after -24h")

 

0 votes
Vishal Biyani
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.
February 12, 2025

This may not be feasible using JQL.

issueFunction is provided by ScriptRunner. Possibly you have Script runner in Server

Suggest an answer

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

Atlassian Community Events