Number list
This function returns the nth element of the given number list. N specifies the position of an element in a list.
nthElement(numberList, position) #Output: Number
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: 7 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number list |
Any given number list. |
|
|
number |
A number satisfying the following condition: |
Output
This function returns a number
If the position is out of bounds (position > count(list)), the function returns null . In case the position is less than 1, an error is returned.
If the number list is empty, the function returns null
Text list
This function returns the nth element of the given text list. N specifies the position of an element in a list.
Syntax
nthElement(textList, position) #Output: Text
Issue list
This function returns an issue list with the nth element of the given issue list. N specifies the position of an element in a list.
nthElement(issueList, position) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the second sub-task of the current issue, e.g.: IT-9289 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()). |
|
|
number |
A number satisfying the following condition: |
Output
This function returns an issue list
If the position is out of bounds (position > count(list)), the function returns an empty issue list . In case the position is less than 1, an error is returned.
If the issue list is empty, the function returns an empty issue list
(books) Use cases and examples
| Use case |
|---|
| No content found. |