Status
Tech review

Style guide




Short description

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

Output

Available since




Supported list types


Number list

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


count(list) #Output: Number



Parser expressionDescription


append([1, 1, 2, 2])


This example returns the number 4


count(subtasks()) - count(fieldValue({00012}, subtasks())) 


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



Parameters used in this function

ParameterInput (data type)Description
list

Any given number list.



This function returns a




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


count(number, list) #Output: Number



Parser expressionDescription


count(1, [1, 1, 2, 2, 1, 0]


This example returns the number 3



Parameters used in this function

ParameterInput (data type)Description
number

Any given number.
list

Any given list.



This function returns a



Text list

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


count(list) #Output: Number



Parser expressionDescription


count(["blue", "red", "blue", "black"])


This example returns the number 4


count(distinct(fieldValue(%{00094}, subtasks())))


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



Parameters used in this function

ParameterInput (data type)Description
list

Any given text list.



This function returns a




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


count(text, list) #Output: Number



Parser expressionDescription


count("blue", ["blue", "blue", "red", "red", "blue", "green"])


This example returns the number 3



Parameters used in this function

ParameterInput (data type)Description
text

Any given text.
list

Any given text list.



This function returns a



Issue list

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


count(list) #Output: Number



Parser expressionDescription


count(filterByResolution(linkedIssues("is blocked by"), ""))


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



Parameters used in this function

ParameterInput (data type)Description
list

Any given issue list.



This function returns a