You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

Supported list types

Number list

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

Syntax
count(list) #Output: Number
Examples
Parser expressionDescription
append([1, 1, 2, 2])

This example returns

4

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

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

To achieve this, the following functions are used:

Additional information

Parameters used in this function

ParameterInput (data type)Description
list

NUMBER LIST

Any given number list.
Output

This function returns a NUMBER


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

Syntax
count(number, list) #Output: Number
Examples
Parser expressionDescription
count(1, [1, 1, 2, 2, 1, 0]

This example returns 

3

Additional information

Parameters used in this function

ParameterInput (data type)Description
number

NUMBER

Any given number.
list

NUMBER LIST

Any given number list.
Output

This function returns a NUMBER


Text list

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

Syntax
count(list) #Output: Number
Examples
Parser expressionDescription
count(["blue", "red", "blue", "black"])

This example returns

4

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:

Additional information

Parameters used in this function

ParameterInput (data type)Description
list

TEXT LIST

Any given text list.
Output

This function returns a NUMBER


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

Syntax
count(text, list) #Output: Number
Examples
Parser expressionDescription
count("blue", ["blue", "blue", "red", "red", "blue", "green"])

This example returns 

3

Additional information

Parameters used in this function

ParameterInput (data type)Description
text

TEXT

Any given text.
list

TEXT LIST

Any given text list.
Output

This function returns a NUMBER


Issue list

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

Syntax
count(list) #Output: Number
Examples
Parser expressionDescription
count(subtasks())
This example returns the number of subtasks.
count(filterByResolution(linkedIssues("is blocked by"), ""))

This example returns the number of unresolved blocking issues.

To achieve this, the following functions are used:

Additional information

Parameters used in this function

ParameterInput (data type)Description
list

ISSUE LIST

Any given issue list.
Output

This function returns a NUMBER