Live Editing
Using an inline script can be painful as you have to keep clicking buttons and saving. It's more productive to point to a file so it can be updated automatically.
If you have a groovy script as opposed to a groovy class, as in the previous examples, the method name should be `run`.
When configured like this you can modify your code without even leaving the Resolve Issue dialog, let alone doing a page refresh.
The path to the script can be relative to a script root.
Live Editing for IDE Users
If using an IDE you can get code completion by adding the following lines at the beginning of your script:
import com.onresolve.jira.groovy.user.FieldBehaviours import groovy.transform.BaseScript @BaseScript FieldBehaviours fieldBehaviours