...
Select Run > Default Script Context. The Script context configuration window opens.
Enter the issue key of the issue you want to test on.
Select OK.
Note: Leave the Issue Key field empty if you don't want to run the script in an issue context.
Explicit Context
You can create an explicit reference to the issue context by entering key before the custom field.
...