Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

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

Disabled options will be ignored.


Code Block
languagebash
titleSyntax
linenumberstrue
numberOfAvailableItems(field) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
linenumberstrue
 numberOfAvailableItems(%{issue.securityLevel})


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

3



UI Expand
titleAdditional information

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

UI Text Box
typenote

Disabled options are discarded.

Parameters used in this function

ParamaterInput (data type)Description
field

Status
subtletrue
titletext

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



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber


UI Text Box
typetip

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



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the number of available options of selectable fields.

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourBlue
title2.2.7

Label