You may need to change the default settings - depending on the complexity of the script in ScriptRunner Behaviours.
Choose: Administration ( in the top panel on the right) > Manage apps.
In the left menu, find the section Message field and click Message field settings for ScriptRunner Behaviours
- Timeout - Indicated in milliseconds. The code in the ScriptRunner that changes the message can take quite a long time, a few seconds. For example, when he needs to get information from another system and display it in a message. In this case, you should increase the waiting time for the ScriptRunner result. If ScriptRunner returns a result within the specified time, the message will be displayed according to its result. Otherwise, the ScriptRunner result will be ignored.
- Show default message?
- No - The message which is previously set in the field settings will be displayed only after the timeout expires(in this case the ScriptRunner results are ignored). While waiting for a response, the message will be hidden.
- Yes - The message which is previously set in the field settings will be displayed until the ScriptRunner result is received. As soon as the result is received, the message will change according to the new data.
Click Save after editing the settings.