Number list
This function sorts a given number list in a specified order. Available orders are ASC (for ascending order) and DESC (for descending order).
sort(numberList, order) #Output: Number list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: [1, 2, 3, 4] |
|
Bash
|
This example returns a number list with e.g. the Story Points of all linked issues in descending order. To achieve this, the following functions are used: Note that |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number list |
Any given number list. |
|
|
text |
Available orders are ASC (for ascending order) and DESC (for descending order). |
Output
The function returns a number list
Text list
Variant for text lists.
sort(textList, order) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: ["blue", "green", "red"] |
|
Bash
|
This example returns a text list with all sub-tasks's assignees in ascending order. To achieve this, the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text list |
Any given text list. |
|
|
text |
Available orders are ASC (for ascending order) and DESC (for descending order). |
Output
The function returns a text list
Issue list
Variant for issue lists.
In this case, a field has to be provided that should be used for the sort order. Available orders are ASC (for ascending order) and DESC (for descending order).
sort(issueList, field, order) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns an issue list of issues blocking current issue, sorted in ascending order by Due date. To achieve this, the following functions are used: |
|
Bash
|
This example returns an issue list of sub-tasks, sorted in ascending order by their assignee. To achieve this, the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
issue list |
Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()). |
|
|
text |
Any field code representing a number, text or selectable field. |
|
|
text |
Available orders are ASC (for ascending order) and DESC (for descending order). |
Output
The function returns an issue list
📚 Use cases and examples
| Use case | Field type | Parser functions |
|---|---|---|
| Highest ranked custom field value among all linked issues |