As a workaround to allow users to manage their versions in Jira without being project admins, I've created a basic script listener that can create/update/release versions based on a custom event.
The problem I am running into is that, even though the script calls the releaseVersions method from the VersionManager class, doing this doesn't actually generate the VersionReleaseEvent against that Version. I would like this to happen so I can call another script listener that will automatically transition any issues inside that Version to a Done status.
My question is: Does anyone know how to trigger the VersionReleaseEvent from inside a script listener?