Versions Compared

Key

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


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

Compares Returns common elements of two lists and returns all common elements.

Output

Status
subtletrue
titlelist

Available since

Status
subtletrue
colourRed
titleneeds lookup




UI Text Box
sizemedium
typeinfo

This function returns a list with elements present in two lists simultaneously.

The returned list does not contain repetitionsduplicates. The order is respected.


Code Block
languagebash
titleOperator
linenumberstrue
list1 INTERSECT list2 #Output: List


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
[1, 1, 2, 3] INTERSECT [1, 3, 5]


This example returns

[1, 3]


Code Block
languagebash
linenumberstrue
["red", "blue", "blue"] INTERSECT ["blue", "yellow", "yellow"]


This example returns

["blue"]


Code Block
languagebash
linenumberstrue
linkedIssues() INTERSECT subtasks()


This example returns a list with all sub-tasks which are also linked to the current issue.

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
list1

Status
subtletrue
titlelist

Any type of text, number or issue list. Learn more about working with lists.
list2

Status
subtletrue
titlelist

Any type of text, number or issue list. Learn more about working with lists.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlelist