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 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 Sign up to answer
Community showcase
Posted Thursday in Jira

Continuous visibility with the new Jira Software Cloud and Bitbucket Cloud integration

Hey Atlassian community, I am a PM on the Bitbucket Cloud team and I am excited to share that we just released an improvement to the Jira Software and Bitbucket Cloud integration. With the newly im...

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