Selectable fields are fields with a limited domain orset of options or possible values.
These fields includes:
Select
Multi Select
Radio Button
Security Level
Checkboxes
Components
Versions
Multi User Picker
Multi Group Picker
Issue Pickers
Attachments
Labels
Available functions
Function
Input
Returned value
numberOfSelectedItems(%{...somefield}) : number
Returns the of selected items in select or multiselect field with field code %{...somefield}.
numberOfAvailableItems(%{...somefield}) : number
Returns the of available options in select or multiselect field with field code %{...somefield}. It's equivalent to count(availableItems(%{...somefield})). Disabled options are discarded.
availableItems(%{...somefield}) : string list
Returns a with available options in select or multiselect field with field code %{...somefield}. Disabled options are discarded. Example: availableItems(%{00103}) returns a string list with all security levels available for the project and current user.
availableItems(%{...somefield}, string option) : string list 0
Returns a with all available child options in cascading or multilevel cascading field with ID %{...somefield}, and for option parent option. In the case of multilevel cascading fields, a comma separated list of options should be entered. Disabled options are discarded.
allAvailableItems(%{...somefield}) : string list
Returns a with all available options in select or multiselect field with field code %{...somefield}. Disabled options are included. Example: availableItems(%{00103}) returns a string list with all security levels available for the project and current user.
allAvailableItems(%{...somefield}, string option) : string list
Returns a with all available child options in cascading or multilevel cascading field with ID %{...somefield}, and for option parent option. In the case of multilevel cascading fields, a comma separated list of options should be entered. Disabled options are included.