Info |
---|
|
This routine is available since JJUPIN starting with - Power Scripts™ 2.5.2 (server)
- SIL Engine™ (former katl-commons) 2.5.3
|
Syntax
lfRestrictSelectOptions(field, options, [triggerChange]);
Description
Excerpt |
---|
Restricts certain options from the list of |
...
...
Parameters
Parameter | Type | Required | Description |
---|
field | String | Yes |
The field Field to restrict options for |
.The list List of options to restrict |
. |
triggerChange | Boolean | No | If set to true, it triggers the change event on the field when routine is used. Available |
since starting with 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 Priority field.
Code Block |
---|
lfRestrictSelectOptions("priority", {"Major", "Minor"}); //where field = "priority" and options = "Major" and "Minor" |
If you want to trigger the change event on the field when using lfRestrictSelectOptionsusing lfRestrictSelectOptions, you can use the optional triggerChange parameter set to "true:".
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) |
---|
showLabels | false |
---|
max | 35 |
---|
showSpace | false |
---|
sort | title |
---|
cql | label = "lf_routines" |
---|
|