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 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

113 views 0 2
Read article

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