In script runner I created a custom listener. When running on issue create, no field values are returned(as if no field values are created in the database).
This only works when we edit the issue.
My guess is the script is running before the issue is commited.
Is there a way to run the script post-commit on an issue create?