I'm trying to set a custom field's value to the last comment in the issue so that I can query for it and include it in confluence. Will be writing this script as a SR listener on create/update of an issue.
I am on JIRA Cloud and using SR for JIRA cloud.