I'm trying to store the latest comment in a custom field so that I can easily surface it in confluence. I'm on JIRA Cloud with SR.
How would I get the latest comment in an issue so that i can set it to a custom field in my ScriptRunner Listener that runs on Create and Update?