Versions Compared

Key

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


Panel

Supported list types

Table of Contents
exclude(Supported list types).*
stylecircle
typeflat
separatorpipe


Number list

UI Text Box
sizemedium
typeinfo

This function returns the number of elements in a number list.


Code Block
languagebash
titleSyntax
linenumberstrue
count(numberList) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{count([1, 1, 2, 2])}


This example returns:

4



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
numberList

Status
subtletrue
titlenumber list

Any given number list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber



Text list

UI Text Box
sizemedium
typeinfo

This function returns the number of elements in a text list.


Code Block
languagebash
titleSyntax
linenumberstrue
count(textList) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{count(["blue", "red", "blue", "black"])}


This example returns:

4


Code Block
languagebash
linenumberstrue
%{count(toStringList(%{issue.components}))}


This example returns the number of components of an issue, e.g:

2

To achieve this, the following function is used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
textList

Status
subtletrue
titletext list

Any given text list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber



Issue list

UI Text Box
sizemedium
typeinfo

This functions returns the number of elements in a given issue list.


Code Block
languagebash
titleSyntax
linenumberstrue
count(issueList) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{count(subtasks())}


This example returns the number of all subtasks of the current issue, e.g:

3

To achieve this, the following function is used:


Code Block
languagebash
linenumberstrue
%{count(linkedIssues("is blocked by"))}


This example returns the number of all linked blocking issues, e.g:

2

To achieve this, the following function is used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList

Status
subtletrue
titleissue list

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).



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_count" and space = currentSpace()


Page properties
hiddentrue


Short description

Returns the number of elements in a text, number or issue list.

Output

Status
subtletrue
titlenumber
 

Label

Status
colourRed
titlestaff pick