Number list
This function returns the first element of a number list. If the list is empty, the function returns null .
first(numberList) #Output: Number
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: 3 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number list |
Any given number list. |
Output
This function returns a number
Text list
This function returns the first element of a text list. If the list is empty, the function returns null .
first(textList) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: blue |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
textList |
text list |
Any given text list. |
Output
This function returns a text
Issue list
The function returns an issue list with the first element of the given issue list. If the issue list is empty, the function returns an empty issue list .
first(issueList) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the first sub-task returned by subtasks(). If subtasks() returns
|
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
📚 Use cases and examples