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

Compare with Current View Page History

« Previous Version 10 Next »

Supported list types

Number list

This function returns the first element of a number list.

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

This example returns the number 3.

Additional information

Parameters used in this function

ParameterInput (data type)Description
list

NUMBER LIST

Any given number list.
Output

This function returns a NUMBER .

If the number list is empty, the function returns NULL.


Text list

This function returns the first element of a text list.

Syntax
first(list) #Output: Text
Examples
Parser expressionDescription
first(["blue", "red", "green"])

This example returns "blue".

Additional information

Parameters used in this function

ParameterInput (data type)Description
list

TEXT LIST

Any given text list.
Output

This function returns a TEXT.

If the text list is empty, the function returns NULL.


Issue list

The function returns an issue list with the first element of the given issue list.

Syntax
first(list) #Output: Issue list
Examples
Parser expressionDescription
first(subtasks())

This example returns a list with the last subtask returned by subtasks() in it.

If subtasks() would return [SUB-1, SUB-2, SUB-3], the output would be [SUB-1].

Additional information

Parameters used in this function

ParameterInput (data type)Description
list

ISSUE LIST

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

This function returns an ISSUE LIST.

If the issue list is empty, the function returns an empty ISSUE LIST.