Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

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



Page properties
hiddentrue


Short description

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

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourBlue
title2.1.32




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(list) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
append([1, 1, 2, 2])


This example returns the number

4


Code Block
languagebash
linenumberstrue
count(subtasks()) - count(fieldValue({00012}, subtasks())) 


This example returns the number of sub-tasks with field an empty "Due Date" unset..

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
list

Status
subtletrue
titlenumber list

Any given number list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

This function variant counts how often a given number appears in a number list.


Code Block
languagebash
titleSyntax
linenumberstrue
count(number, list) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
count(1, [1, 1, 2, 2, 1, 0]


This example returns 

returns the number 3



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
number

Status
subtletrue
titlenumber

Any given number.
list

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(list) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


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


This example returns the number

4


Code Block
languagebash
linenumberstrue
count(distinct(fieldValue(%{00094}, subtasks())))


This example returns the number of components selected among all sub-tasks.

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
list

Status
subtletrue
titletext list

Any given text list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

This function variant counts how often a given text appears in a text list.


Code Block
languagebash
titleSyntax
linenumberstrue
count(text, list) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
count("blue", ["blue", "blue", "red", "red", "blue", "green"])


This example returns 

returns the number 3



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text.
list

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(list) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
count(subtasks())


This example returns the number of subtasks.


Code Block
languagebash
linenumberstrue
count(filterByResolution(linkedIssues("is blocked by"), ""))


This example returns the number of non-resolved unresolved blocking issues.

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
list

Status
subtletrue
titleissue list

Any given issue list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber