lfAllowSelectOptions

The use of this routine requires the Power Scripts for Jira add-on be installed and licensed.

Description

Restricts a field's selectable values to the list of options given as a parameter of the routine.

Parameters

Return Type

None

Example

lfAllowSelectOptions("priority", {"Medium", "High"}); //where field = "priority" and options = "Medium" and "High"

If you want to trigger the change event on the field when using the lfAllowSelectOptions routine, you can use the optional triggerChange parameter set to true:

lfAllowSelectOptions("customfield_10000", {"option1", "option2"}, true); //where field = "customfield_10000" of type select list, options = "option1" and "option2" and triggerChange = true

See also