Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Searching for issues by last public comment.

Type: Cloud

Is there any way to filter issues from a search based on the last comments date and visibility status using in built field.

I can see the Comment fields in the CSV export contain a Date time stamp. However I suspect this is sourced from another field in the backend not available from the UI.


Reason for Query:

Attempting to build an automation to prompt SD Agents to follow up on aging cases.
Need to additionally be able to determine if the last comment was internal.


Current automation leverages the updated field. 2021-02-10_17h34_19.png


2 answers

1 accepted

1 vote
Answer accepted
Muhammad Ramzan Community Leader Feb 10, 2021

Hi @Onyx Gendry ,


Welcome to Atlassian community. I have created the example rule for you and it will be fulfilling all of your needs. 


You can use this condition and compare it with false


 It will get all issues where last comment is a public comment.


Here is the snapshot, you can use your query as it is in the scheduled and use the remaining conditions to fulfill your needs.



Please feel free to contact back any time if you face any issues

Hi Muhammad,

Thanks for the cheery welcome and appreciate the swift response. This looks like half the puzzle, I'll have to give it a test post my extra long weekend leave and get back to you. 

The properties stuff is really powerful but the learning curve is rather steep.

Kind regards,


You are always welcome, We just need to figure out how to use it so it can solve your whole puzzle :) 


Please feel free to reply back if you face any issue.


Hi Muhammad,

This certainly put me on the right track. After an afternoon buried in the documentation with the fresh perspective you gave me I got it to do what I was after and learned some neat basics on automation. Learning new things is always exhilarating, especially when they work properly.


While it certainly isn't the most efficient query/notification scheme, here's the final product for reference.

Schedule filters in anything with an appropriate status during work week days on a CRON schedule. (Running at midnight)

First IF: Filters out any issues who's last comment is within the last 5 days. (Might have to refine this one at a later date)

Action: Had to add an action to save it so it just logs something. 

Second IF: Checks visibility on Comment (Internal) + validates created time. (Validation is probably unnecessary but I'm paranoid fool so i put it in anyway.)

Action: Sends email to Assignee with appropriate message

Second IF: Checks visibility on Comment (External) + validates created time. (Validation is probably unnecessary but I'm paranoid fool so i put it in anyway.)

Action: Sends email to Assignee with appropriate message


Kind regards,


Muhammad Ramzan Community Leader Feb 16, 2021

That's great, thanks for sharing the detailed implementation and for sure it will be very helpful for the community . 

Sharing is Caring as they say Muhammad. I also work in Support so I know how annoying a lack of details on resolving an issue/question can be.

Hi Muhammad, Atlassian community,

Update, recent changes or simplifications really, to the smart values had scratching my head as to why the original notifications were triggering on things they shouldn't be.
I had to make the following changes to the automation to compensate.


is now

Kind regards,


0 votes

Hi @Onyx Gendry ,

You can use the Comment Enhancer app for this.

It has features called Last comment, Last Commenter, and Last Comment Date custom fields that will help you to stay on top of your tickets. You can also search issues against these custom fields. Just start typing custom field names, and search issues. You can also add comment custom fields to the issue navigator and see the results accordingly.

Last comment-Comment Enhancer.png

Please let me know if you have further questions.



Please note that I'm one of the members of the Snapbytes team.

Hi Gökçe,

I appreciate the suggestion, unfortunately this isn't what I'm after. I'm only looking to leverage the in-built standard fields/values as I have neither the clout nor justification for a 3rd party app, free or otherwise.

Kind regards,


Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

758 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you