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

Compare with Current View Page History

« Previous Version 6 Next »


Supported list types

Number list

The function returns a NUMBER LIST with elements in l sorted in a specified order. Available orders are ASC (for ascending order) and DESC (for descending order).

Syntax
sort(number list l, order) #Output: Number list
Examples
Parser expressionDescription
sort([2, 4, 3, 1], ASC) 

The function returns the NUMBER LIST : [1, 2, 3, 4]

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER LIST


Text list

Returns a text list with elements in l lexicographical order. Available orders are ASC (for ascending order) and DESC (for descending order).

Syntax
sort(string list l, order) #Output: Text list
Examples
Parser expressionDescription
sort(["red", "blue", "green"], ASC)

The function returns the NUMBER LIST : ["blue", "green", "red"]

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a TEXT LIST


Issue list

The function returns an ISSUE LIST with elements in l ordered according to values of field.

Argument field has the format {nnnnn} for numeric and date-time fields, %{nnnnn} for text fields, or %{nnnnn.i} for cascading select fields. Available orders are ASC (for ascending order) and DESC (for descending order).

Syntax
sort(issue list l, field field, order) #Output: Issue list
Examples
Parser expressionDescription
sort(linkedIssues("is blocked by"), {00012}, ASC)

The function returns the ISSUE LIST of issues blocking current issue, sorted in ascending order by Due date.

{00012} is code for numeric value of Due date.

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns an ISSUE LIST