...
Click on the Save button and the script is associated to the current custom field.
Now type in the SIL script a return value, for example: return priority;
How to use it
Go to an issue and this is how the value of the field is the value returned by the script.
That's it.