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

This widget could not be displayed.

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 https://jamieechlin.atlassian.net/browse/GRV-302 .

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

576 views 25 15
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