...
lfRestrictSelectOptions(field, options, [triggerChange]);
Description
Excerpt |
---|
Restricts the list of given options from the options of the field. |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
field | String | Yes | The field to restrict options for. |
options | String | Yes | The list of options to restrict. |
triggerChange | Boolean | No | If set to true, triggers the change event on the field when routine is used. Available since v. 2.5.6 for Jira 5.x and v. 2.6.1 for Jira 6.x. |
Example
The following code example restricts Major and Minor from the options of the priority standard field.
...
Code Block |
---|
lfRestrictSelectOptions("customfield_10000", {"option1", "option2"}, true); //where field = "customfield_10000" of type select list, options = "option1" and "option2" and triggerChange = true |
See Also:
Filter by label (Content by label) | ||||
---|---|---|---|---|
|