Live Editing
For live editing and improved efficiency in script management, we recommend you use external script files rather than inline scripts. This approach eliminates the need for frequent manual saving and allows for automatic updates within the Script Roots.
To implement this method you can use the Script Editor to create and manage your external script files. When you're creating a Behaviour you can point to the file you created.
CAUTION: If you have a groovy script as opposed to a groovy class the method name should be
run.Code completions for IDE users
If you're using an IDE you can get code completions by adding the following lines at the beginning of your script:
Add the following lines at the beginning of your script.
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseS```cript
@BaseScript FieldBehaviours fieldBehaviours