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 selected items in a selectable field.


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


UI Expand
titleExamples


Parser expressionDescription


Code Block
linenumberstrue
 numberOfSelectedItems(%{issue.versions})


This example returns the number of all affected versions for an issue, e.g.

3



UI Expand
titleAdditional information

Parameters used in this function

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



Image AddedUse cases and examples

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


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 selected items in a given selectable field.

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourBlue
title2.2.7

Label