Number list
This function removes all duplicates from a number list.
distinct(numberList) #Output: Number list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns [1, 2, 3, 4, 5] |
|
Bash
|
This example returns a number list of dates containing due dates of cloning issues, with only one occurrence per due date, although more than one issue may share the same due date. To achieve this, the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number list |
Any given number list. |
Output
This function returns a number list .
If the list is empty, the function returns an empty number list .
Text list
This function removes all duplicates from a text list.
distinct(textList) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns ["blue", "green", "yellow"] |
|
Bash
|
This example returns a text list of the sub-tasks' assignees with only one occurrence per user, although a user may have more than one sub-task assigned. 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. |
Output
The function returns a text list .
If the list is empty, the function returns an empty text list .
Issue list
This function removes all duplicates from an issue list.
distinct(issueList) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns an issue list of linked issues, with only one occurrence per issue, although an issue may be linked with more than one issue link type. 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()). |
Output
This function returns an issue list .
If the list is empty, the function returns an empty issue list .
📚 Use cases and examples
| Use case | Workflow function | Field type | Parser functions |
|---|---|---|---|
| Match several values of a list | |||
| Components from all sub-tasks | |||
| Reject duplicated file names in attachments | |||
| Display reporters of linked Cloud issues |