You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

This function returns a TEXT LIST with all available options and child-options of selectable fields.

Syntax
availableItems(%{...somefield}) #Output: Text list
Examples
Parser expressionDescription
availableItems(%{00103})
This function returns a text list with all security levels available for the project and current user.
Output

Returns a comma separated  TEXT LIST



Variant of the function where you can optionally specify a dedicated parent option. Only child options matching the specified parent will be returned.

Syntax
 availableItems(%{...somefield}, option) #Output: Text list
Examples
Parser expressionDescription
availableItems(%{issue.cf10100}, Europe)

This function returns all child options of the Europe option in a custom cascading select field with the field code issue.cf10100.

Let's assume the custom field hold regions and is structured in the following way:

  • Europe
    • North
    • South
    • East
    • West
  • US
    • Alabama
    • Alaska
    • ...

In this example the function would return "North, South, East, West"

availableItems(%{issue.cf10100}, "Europe, US")
This variant would return all child-options since both existing parent options were selected.
Additional information

The function will return a comma-separated list of all child options of a multi-level cascading select field %{...somefield}. Only child options (2nd level option) of the specified parent option will be returned.

If you want to specify multiple parent options, enter a comma-separated list to the function.

In the case of multilevel cascading fields, a comma separated list of options should be entered. Disabled options are discarded.

Output

Returns a TEXT LIST with all available options in select or multi-select.