To retrieve the value of a text custom field simply create a string variable and
set the value to the custom field.
To set the value of a text custom field simply set the custom field to equal the
text or string variable.
Getting Values
NOTE: Getting the value using the customfield id is not the best practice when writing SIL scripts. See the Working with Custom Fields example for more information on the best practices.string myText = customfield_12345;
Setting Values
NOTE: This script assumes that it is running in the context of an issue. Like in a workflow script or listener for example. If you would like to test this script from the SIL Manager, add an issue key to test with under the Run Configuration setting (Run > Run Configuration > Context).customfield_12345 = "Hello world!";
Supported Field Types
Radio Buttons
Select List (single choice)
Text Field (multi-line)
Text Field (single-line)
URL Field
NOTE: getting the value using the customfield id is not the best practice when
writing SIL scripts. See the Working with Custom Fields example for more
information on the best practices.
NOTE: These scripts assumes that they are running in the context of an issue. Like in a
workflow script or listener for example. If you would like to test these scripts
from the SIL Manager, add an issue key to test with under the Run Configuration
setting (Run > Run Configuration > Context).