Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short descriptionReturns a  Statussubtletruetitlelist with all numbers, texts, or issues in list l without any duplication.Output Statussubtletruetitlelist Panel

Supported list types

Table of Contents
exclude(Supported list types).*
stylecircle
typeflat
separatorpipe


Number list

with all numbers in list l without any duplicationThis function removes all duplicates from a number list.

UI Text Box
sizemedium
typeinfo

The function returns a 

Status
subtletrue
titlenumber list


Code Block
languagebash
titleSyntax
linenumberstrue
distinct(number list lnumberList) #Output: Number list


UI Expand
titleExamples


: [1, 2, 3, 4, 5] 

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:

Parser expressionDescription


Code Block
languagebash
linenumberstrue
distinct([1, 2, 1, 3, 4, 4, 5])


The function This example returns a

Status
subtletrue
titlenumber list


Code Block
languagebash
linenumberstrue
distinct(fieldValue({00012issue.dueDate}, linkedIssues("is cloned by")))


The function returns a

Status
subtletrue
title



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>numberList

Status
subtletrue
titledata typenumber list

Any given number listParameter description.



UI Expand
titleOutput

The This function returns a

Status
subtletrue
titlenumber list
.

If the list is empty, the function returns an empty 

Status
subtletrue
titlenumber list
.



Text list

with all text in list l without any duplicationThis function removes all duplicates from a text list.

UI Text Box
sizemedium
typeinfo

The function returns a

Status
subtletrue
titletext list


Code Block
languagebash
titleSyntax
linenumberstrue
distinct(text list ltextList) #Output: Text list


UI Expand
titleExamples


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

Parser expressionDescription


Code Block
languagebash
linenumberstrue
distinct(["blue", "green", "yellow", "blue", "yellow"])


The function This example returns a

Status
subtletrue
titletext list


Code Block
languagebash
linenumberstrue
distinct(fieldValue(%{00003issue.assignee}, subtasks())) 


The function returns the This example returns a text list of assignees to subthe 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:



UI Expand
titleAdditional information

Parameters used in this function

<parameter><parameter>
ParameterInput (data type)Description
textList

Status
subtletrue
title

data typeParameter description.

text list

Any given text list.



UI Expand
titleOutput

The function returns a

Status
subtletrue
title

data type

text list

Parameter description.
UI Expand
titleOutput

.

If the list is empty, the function returns an empty The function returns a

Status
subtletrue
titletext list
.



Issue list

UI Text Box
sizemedium
typeinfo

The function returns an 

Status
subtletrue
titleissue list
with all issues in list l without any duplicationThis function removes all duplicates from an issue list.


Code Block
languagebash
titleSyntax
linenumberstrue
distinct(issue list lissueList) #Output: Issue list


UI Expand
titleExamples


 of 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:

Parser expressionDescription


Code Block
languagebash
linenumberstrue
distinct(linkedIssues())


The function returns an

Status
subtletrue
titleissue list



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>issueList

Status
subtletrue
titledata typeissue list

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



UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list
.

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

Status
subtletrue
titleissue list
.



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_distinct" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function clouddistinct()
Map(tick)
Notes




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

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

Output

Status
subtletrue
titlelist

Available since

Status
subtletrue
colourBlue
title2.1.21

Label

Status
colourRed
titlestaff pick