This function returns the number of available options of selectable fields.

Disabled options will be ignored.

Syntax
numberOfAvailableItems(field) #Output: Number
Examples
Parser expressionDescription
 numberOfAvailableItems(%{issue.securityLevel})

This example returns the number of all available security levels available for the project and current user, e.g.

3

Additional information

This function is equivalent to count(availableItems(%{...somefield}) .

Disabled options are discarded.

Parameters used in this function

ParamaterInput (data type)Description
field

TEXT

The parameter must be a valid field code for a  selectable field.
Output

This function returns a NUMBER

If you need the actual options instead of just the number try using availableItems()


Use cases and examples