Supported list types


Number list

This function returns the last element of a number list.


last(numberList) #Output: Number



Parser expressionDescription


%{last([3, 2, 1, 0])} 


This example returns:

0



Parameters used in this function

ParameterInput (data type)Description
numberList

Any given number list.



This function returns a

If the number list is empty, the function returns 



Text list

This function returns the last element of a text list.


last(textList) #Output: Text



Parser expressionDescription


%{last(["blue", "red", "green"])}


This example returns:

green



Parameters used in this function

ParameterInput (data type)Description
textList

Any given text list.



This function returns a

If the text list is empty, the function returns 



Issue list

This function returns an issue list with the last element of the given issue list.


last(issueList) #Output: Issue list



Parser expressionDescription


%{last(subtasks())}


This example returns the last sub-task of the current issue, e.g.:

IT-9289

To achieve this, the following functions are used:



Parameters used in this function

ParameterInput (data type)Description
issueList

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).



This function returns an 

If the issue list is empty, the function returns an empty 



Use cases and examples



Short description

Returns the last element of a number, text, or issue list.

Output