Script Runner Behaviours - Settings

You can change the message using the ScriptRunner for Jira application and its Behaviours function.

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.
      • For example, you can set the message “Loading…” in the field settings. It will be displayed during “behavior” is running and until the new message will be set from the script.

  • When the JavaScript from Message field settings should be run?
    • After displaying the default message - The javascript will be executed after displaying the message from the field settings, i.e. immediately after opening the screen or after a timeout.
    • After executing the “behavior” or timeout script - Javascript will be executed after the ScriptRunner result will be received or after a timeout.

Click Save after editing the settings.


JavaScript - Examples
Script Runner Behaviours - Examples
JiBrok message field Message field
JiBrok time in status Time in status | SLA | Timer | Stopwatch
Tutorials
Settings
Work calendars
Time in status
Timers and Stopwatches
Stopwatch
Timer
Additional functions
Issue panels
Reports
Field Helpers
Other fields
API
Reference information
JiBrok Switch to User + Delegating SU (Jira) Switch to User + Delegating SU (Jira)
JiBrok time in status Time in status for Jira Cloud
Work calendars
Time in status fields
Issue panels
Reports
Service tools
Reference information
JiBrok Calculated fields Calculated fields (JBCF)
JiBrok Calculated fields Calculated fields (JBCF) for Jira Cloud
JBCF fields
Service tools
JiBrok Timer Timer field | SLA for Jira Cloud
Work calendars
Timer fields
Issue panels
Service tools
JiBrok Stopwatch Stopwatch for Jira Cloud
Work calendars
Stopwatch fields
Issue panels
Service tools
JiBrok Time between dates Time between dates for Jira Cloud
Time between dates fields
JiBrok Fields panel for Jira Service Management (JSM) Fields panel for Jira Service Management (JSM)
JiBrok Display Linked Issues Display Linked Issues
User helper for JiBrok cloud apps User helper for JiBrok cloud apps