numberOfAvailableItems()

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

Disabled options will be ignored.


Bash
numberOfAvailableItems(field) #Output: Number


Examples

Parser expression

Description

 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

Paramater

Input (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