Skip to end of banner
Go to start of banner

Cascading Fields

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

To retrieve multiple values from a cascading custom field (for example)
simply create a string array variable and set the value to the custom field.

To set the values of a cascading custom field simply set the custom field
to equal a an array of strings or a string array variable. The first position of the array represents the parent (primary) value while the second position of the array represents the child (secondary) value.

Getting Values

string [] myCascad = customfield_12345;

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.

Setting Values

customfield_12345 = {"parent_value", "child_value"};

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).

Supported Field Types

  • Select List (cascading)

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).

  • No labels