There should be a way to show alert messages through script runner in JIRA Cloud using script listeners or post function. For example, if a script listenere encounters an error and the user can change this, I would like to display an error message.
This is already possible in ScriptRunner for Jira Server through the UserMessageUtil.