Supported list types


Number list

This function removes all duplicates from a number list.


distinct(numberList) #Output: Number list



Parser expressionDescription


distinct([1, 2, 1, 3, 4, 4, 5])


This example returns

[1, 2, 3, 4, 5] 


distinct(fieldValue({issue.dueDate}, linkedIssues("is cloned by")))


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:



Parameters used in this function

ParameterInput (data type)Description
numberList

Any given number list.



This function returns a .

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



Text list

This function removes all duplicates from a text list.


distinct(textList) #Output: Text list



Parser expressionDescription


distinct(["blue", "green", "yellow", "blue", "yellow"])


This example returns

["blue", "green", "yellow"]


distinct(fieldValue(%{issue.assignee}, subtasks())) 


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:



Parameters used in this function

ParameterInput (data type)Description
textList

Any given text list.



The function returns a .

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



Issue list

This function removes all duplicates from an issue list.


distinct(issueList) #Output: Issue list



Parser expressionDescription


distinct(linkedIssues())


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:



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 list is empty, the function returns an empty .



Use cases and examples



Parser function clouddistinct()
Map(tick)
Notes






Status
Tech review

Style guide




Short description

Removes all duplicates from a number, text, or issue list.

Output

Available since

Label