There are three different data types that return lists. i.e., types that are based on lists, or ordered collections of elements. These data types are: There are four available operators for working on list-based data types:General Information
List Operators
Operator Behavior Examples l APPEND
mReturns a list with elements in l followed by elements in m, therefore the number of elements is the sum of the number of elements in l and m.
Order is respected. It may contain repeated elements. [1, 2, 3] APPEND [3, 4, 4] = [1, 2, 3, 3, 4, 4]
["blue", "red", "red"] APPEND ["red", "green"] = ["blue", "red", "red", "red", "green"]
subtasks() UNION subtasks()
returns a list containing twice all the sub-tasks of current issue.l UNION
mReturns a list with elements in l and elements m without repetitions.
Order is respected. [1, 2, 3] UNION [3, 4, 4] = [1, 2, 3, 4]
["blue", "red", "red"] UNION ["red", "green"] = ["blue", "red", "green"]
linkedIssues() UNION subtasks()
returns a list with linked issues and sub-tasks of current issue without repetitions.l INTERSECT
mReturns a list with the elements present in both lists simultaneously. Returned list doesn't contain element repetitions.
Order is respected. [1, 1, 2, 3] INTERSECT [1, 3, 5] = [1, 3]
["red", "blue", "blue"] INTERSECT ["blue", "yellow", "yellow"] = ["blue"]
linkedIssues() INTERSECT subtasks()
returns a list with those sub-tasks which are also linked to current issue.l EXCEPT
mReturns a list with elements in l which are not present in list m. Returned list doesn't contain element repetitions.
Order is respected. [1, 2, 2, 3, 3] EXCEPT [2, 5, 6] = [1, 3]
["red", "red", "blue", "blue", "green"] EXCEPT ["blue", "yellow"] = ["red", "green"]
linkedIssues() EXCEPT subtasks()
returns a list with linked issues which are not sub-tasks of current issue.append
, union
, intersect
and except
.Precedence Order and Associativity
OPERATORS PRECEDENCE ASSOCIATIVITY l INTERSECT
m1 (highest) Left-to-Right l UNION
m, l EXCEPT
m, l APPEND
m2 (lowest) Left-to-Right
🚀 Effective since April 2020 and JWT version 2.9.0 Automation Toolbox for Jira is fully integrated into our top rated app Jira Workflow Toolbox (JWT). 🚀