Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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

{{issue.comments.last.properties."sd.public.comment".internal}}

 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.

2021-02-10_13-43-15.png

 

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,

Onyx

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

2021-02-17_15h25_16.png

Kind regards,

Onyx

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 @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.

Cheers,

Gökçe

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,

Onyx

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

170 views 0 4
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