Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

lfAllowSelectOptions(field, options[, triggerChange])

Description

Excerpt
Restricts the list of given options of the field to the list of options given as parameter.

Parameters

ParameterTypeRequiredDescription
fieldStringYesThe field to restrict options for.
options

String

YesThe list of remaining options.
triggerChangeBooleanNoIf set to true, triggers the change event on the field when routine is used.

Example

The following code example restricts anything but Major and Minor from the options of the priority standard field.

...

Code Block
lfAllowSelectOptions("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)
cqllabel = "live_fields_routines"
labelsjira_comment_routine