You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Next »

Supported list types

Number list

This function combines two number lists.

If you want to avoid repetition, use the function union().
Syntax
append(list1, list2) #Output: Number list
Examples
Parser expressionDescription
append([1, 2, 3], [3, 4, 5])

This example returns

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

append(fieldValue({issue.timeSpent}, linkedIssues("is blocked by")), fieldValue({issue.timeSpent}, subtasks()))

This example returns a number list with Total time Spent (in minutes) in blocking issues and sub-tasks.

This number list can be summed using function sum().

Additional information

Parameters used in this function

ParameterInput (data type)Description
list1

NUMBER LIST

Any given number list.
list2

NUMBER LIST

Any given number list.
Output

This function returns a NUMBER LIST.

If both lists are empty, the function returns an empty NUMBER LIST.


Text list

This function combines two text lists.

If you want to avoid repetition, use the function union().
Syntax
append(list1, list2) #Output: Text list
Examples
Parser expressionDescription
append(["blue", "red", "green"], ["red", "green", "yellow"])

This example returns

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

append(fieldValue(%{issue.fixVersion}, subtasks()), fieldValue(%{issue.fixVersion}, linkedIssues("is blocked by")))

This example returns a text list with Fix Version/s of all sub-tasks and blocking issues.

Additional information

Parameters used in this function

ParameterInput (data type)Description
list1

TEXT LIST

Any given text list.
list2

TEXT LIST

Any given text list.
Output

This function returns a TEXT LIST.

If both lists are empty, the function returns an empty TEXT LIST.


 Issue list

This function combines two issue lists.

If you want to avoid repetition, use the function union().
syntax
union(list1, list2) #Output: Issue list
Examples
Parser expressionDescription
append(linkedIssues("is blocked by"), subtasks())

This example returns an issue list of blocking issues and sub-tasks.

If a sub-task is also linked with issue link type "is blocked by", it will appear twice in the output list.

Additional information

Parameters used in this function

ParameterInput (data type)Description
list1

ISSUE LIST

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

ISSUE LIST

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

This function returns an ISSUE LIST.

If both lists are empty, the function returns an empty ISSUE LIST.