How to get last commenter using groovy script plugin

I am trying to use the groovy script Escalations service to transition an issue based on the last commenter. I initially set up an escalation using an Include function:

issueFunction in commented("by john.doe")
This returned all issues that john doe had commented on, I only want issues where john doe was the last (or most recent) commenter. Is this possible? Can anyone give me an example of how to do this?
Thank you

1 answer

1 accepted

0 vote

This is a JQL question really, not about script runner escalation service per se.

I could not find a function that queries on the last comment/commenter... but it seems like a good idea so I put in .

Hi Jamie,

Thanks for ticket submission.

I have been trying to create a JQL for this but the issue I run into is that JIRA updates the commenter field any time a comment is added or the issue is updated (so even an in-line edit to a field will update the commenter field).

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,327 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot