English

How do you find issues not commented on in the last 30 days with JQL?

On this page

To find issues not commented on in the last 30 days with JQL, native JQL is not enough, because Jira Cloud has no field for the date of the last comment. With Flexible JQL you can ask for it directly: fjLastCommentDate <= -30d returns issues whose latest comment is at least 30 days old.

This guide explains why native JQL falls short, gives five queries to copy, and shows how to turn them into a filter, a dashboard list or an automation rule.

Why can’t native JQL find issues with no recent comment?

Native JQL can search for text in comments and can filter on updated, created and resolved, but it has no field for when the last comment was added. People ask for exactly this in Atlassian Community threads, with titles such as “How to query the time since a comment was added to an issue” and “tickets not commented from last 15 days”; three are listed in Sources.

The answers that come up in search results fall into four groups:

Approach What it gives What it costs
updated <= -30d A stale-issue list in one line Also changes on field edits, so it misses issues edited but never discussed
An app that adds a comment-date field A direct query Another app, with its own syntax
A function in a scripting app A direct query A scripting tool to install and maintain
Automation plus a date custom field A field you can search Rules to build, backfill and keep running

The first row is the quick fix and the reason many stale-issue lists are wrong. An issue edited yesterday is not stale by that measure, even if nobody has commented on it for three months.

How do you find issues with no comment in 30 days?

Flexible JQL keeps a searchable field, fjLastCommentDate, on each issue. It is filled in the background and kept current by Jira events, so you can use it in a filter, in ORDER BY and on a board.

fjLastCommentDate <= -30d

That returns issues whose latest comment is 30 or more days old. Two refinements make it useful in practice:

statusCategory != Done AND fjCommentCount > 0 AND fjLastCommentDate <= -30d

Without statusCategory != Done the list fills with finished work. The clause fjCommentCount > 0 matters too, and the next section explains why.

How do you include issues that were never commented on?

An issue with no comments has no last comment date, so a date clause alone does not return it. Ask for those separately with the count field, fjCommentCount, which is exact.

statusCategory != Done AND fjCommentCount = 0

To get both groups in one list, join them:

statusCategory != Done AND (fjCommentCount = 0 OR fjLastCommentDate <= -30d)

Keep the brackets. Without them the AND and OR bind in a way that returns finished issues as well.

Example Quiet and never discussed are different lists

Open issuefjLastCommentDate <= -30dfjCommentCount = 0In the combined list
Last comment 45 days agomatchesnoyes
Never commentedno datematchesyes
Commented yesterdaynonono
Combine both clauses with OR to catch every open issue nobody has talked about for a month.

Which queries are worth saving?

These are examples to adapt; replace ABC with your project key.

Question Query
Open issues with no comment for 30 days project = ABC AND statusCategory != Done AND fjCommentCount > 0 AND fjLastCommentDate <= -30d
Open issues never commented on project = ABC AND statusCategory != Done AND fjCommentCount = 0
In progress and quiet for 14 days statusCategory = "In Progress" AND fjCommentCount > 0 AND fjLastCommentDate <= -14d
Commented in the last 7 days fjLastCommentDate >= -7d
Longest silent first statusCategory != Done AND fjCommentCount > 0 ORDER BY fjLastCommentDate ASC

The fifth is a sorted review list: open the filter and work down from the oldest silence. Change -30d to your own threshold; a support team may want 3 days, a planning team 30.

How do you use the list every week?

A query nobody opens does not help. Three habits turn it into a routine:

  1. Save it as a filter. Name it for what it asks, such as “Quiet for 30 days: ABC”.
  2. Put it on a dashboard. A filter results gadget shows the oldest silences to the people who can chase them.
  3. Run it from automation. An automation rule can run the filter on a schedule and comment on each issue or post the list to a channel.

An example: a project has 140 open issues. The update-date query returns 12, because many are edited weekly. The last-comment query returns 31, among them 9 with no comment at all. The extra 19 are the issues that were touched but never discussed, which is the group worth reviewing.

What limits should you know about?

  • The fields are filled in the background after installation, and Jira events can arrive up to about three minutes late, so a comment added seconds ago may not show yet.
  • Comments restricted to a role or group the app is not in are not counted, so an issue whose only recent comment is restricted can look quiet.
  • To find comments by a named person, use commentedBy with an account ID. It reads comments live, so add a narrow scope query. commentedBy has no currentUser() form; the workbench user picker inserts your own account ID.
  • Results follow the permissions of the person who runs the query.
  • It is for Jira Cloud only, not Data Center or Server, and it has no AI features.

Doing this with advanced JQL functions for Jira Cloud

Flexible JQL for Jira adds 55 advanced JQL functions and 64 searchable fields to Jira Cloud, including fjLastCommentDate and fjCommentCount, and its Library starts you with 44 ready-made queries you can edit and share. The indexed fields documentation explains how the fields are filled and kept current, and the limits page lists what it cannot do. The app is coming soon to the Atlassian Marketplace. To compare it with other apps that add JQL functions, read JQL functions for Jira Cloud: five JQL apps compared.

Sources

Frequently asked questions

Can native JQL find issues with no comment in the last 30 days?

Not directly. Native JQL has no field for the date of the last comment. The usual stand-in is updated <= -30d, but updated also changes when someone edits a field, so that query misses issues that were edited but never discussed.

How do I find issues with no comment in 30 days with Flexible JQL?

Use the indexed field fjLastCommentDate: fjLastCommentDate <= -30d returns issues whose latest comment is at least 30 days old. Add fjCommentCount > 0 to leave out issues that never had a comment.

How do I include issues that were never commented on?

Use fjCommentCount = 0 for issues with no comments at all, or combine it with the old-comment clause: fjCommentCount = 0 OR fjLastCommentDate <= -30d. An issue with no comment has no last comment date, so the date clause alone does not return it.

Does the query follow comment permissions?

Comments restricted to a role or group that the app is not in are not counted, so an issue whose only recent comment is restricted can look stale. Results also follow the permissions of the person who runs the query.

How fresh is the list after someone adds a comment?

The indexed fields are kept current by Jira events, which can arrive up to about three minutes late. A comment added seconds ago may not have updated the field yet.