Generate Events
Use the Generate Events built-in script to force ScriptRunner to fire an event to be consumed by a listener.
For example, you have set up automation to improve your service desk process using a listener. This listener consumes all subsequent new Issue Created events, but does not take into account issues created before automation. You want all issues to be aligned, and for all existing issues to go through the new automation process. Use Generate Events to fire an Issue Created event for existing issues, allowing them to be picked up by the listener and passed through automation.