Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Create a service desk queue which shows time since the last comment

I am looking to create a way that our team can see how long it has been since a service desk agent has commented on a ticket.

I tried to do this by creating custom fields for last commented by, and last comment date/time... I can select these in the queue creation filters, but they are not working.

if that isn't possible, just a way to create a queue which shows the last comment date/time would be great.


Screenshot 2022-05-19 at 17.25.26.png

1 answer

0 votes

@Melanie Whyte -

I am assuming when you referring to the agent, you meant the agent who is assigned to the issue.  If so, I would recommend that add an condition to your rule to check if the comment author is the same person as the issue assignee (agent), if so, then update your custom fields as needed.


Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Hi Joseph, thank you for the rapid reply :)

thats not quite what I meant sorry, I didn’t explain very well.

I mean service desk agent (role type) so its essentially a way of checking if its a comment that has been raised by one of our internal team, not a comment by the customer that the last comment date is being pulled from.

or if its simpler, just a way to display the last comment date/time, and who the commenter was.. that would also be fine, its straightforward enough for us to see which our team are.

Ok.  So, all of your internal team members are agents right?  if so, you can expand the conditional check for each one of your members (multiple conditional check with if/else routine) to determine if comments are made to the issue are someone from your internal team.  If it is TRUE, then populate your custom fields.

The drawback of this solution will be that your conditional checks for your team member's names are hard-coded.  Unfortunately, I am not aware of any smart.value that can provide you with user's project role assignment.

If you just want to get the last comment and the comment's author regardless what role the comment author was, then you can just use the rule with Edit Issue action to populate your custom fields with the following smart values -

{{issue.comments.last.body}}  Returns the body of the last comment.

{{}} Return the name of the person who added the last comment on an issue  

Hope this helps.

Best, Joseph

Hi Joseph,

I still cant seem to get it working. 

I have created the 'last commented by' and 'last commented date' custom fields.  I have also created the automation (image below), and i have added the 2 fields to the 'view' screen for the service desk board i am applying the queue to.

However the queue is not pulling through any data. Do you have any idea what I might have wrong here?

Thanks, Melanie

Screenshot 2022-05-24 at 17.21.24.pngScreenshot 2022-05-24 at 17.24.22.png

Suggest an answer

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

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

165 views 0 4
Join discussion

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