Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scripts in behavior can be very complex and run "not instantly", but for a second or more. In order for the plugin(message field) to wait for the result of script, in the plugin settings must set a timeout for waiting for a response from ScripRunner. If the "behavior" execution time exceeds the timeout, the plugin will not be able to display the received message. If the script is not large, it is usually enough to wait around 1 second. The 1000ms timeout is also almost invisible to users. If you need to set a longer waiting time, there is an option to display the default message from the field settings while waiting for the behavior script to execute. When "behavior" completes its execution, the message will be replaced with a new one.

During this time, the "Message field" field will wait for the result of Script Runner execution. As soon as the result is received(before the timeout expires) the message will be updated immediately.

For example, you can set the message "Loading" in the field settings. It will be displayed until "behavior" is performed and the new message from script is set.

...