Versions Compared

Key

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


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Page properties
hiddentrue
Short description

Returns the number of available options in select or multi-select field with field code %{...somefield}.

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourBlue
title2.2.7

UI Text Box
sizemedium
typeinfo

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

Disabled options will be ignored in select or multi-select field with field code %{...somefield}. It's equivalent to count(availableItems(%{...somefield})) . Disabled options are discarded.


Code Block
languagebash
titleSyntax
linenumberstrue
numberOfAvailableItems(%{...somefield}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



Parameter description
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
xxx
field

Status
subtletrue
title

data type

text

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



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_numberofavailableitems" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible to access to that kind of information about selectable fields.




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