This function creates a variable for storing an issue list, and directly sets the values.

This value will be immediately returned and can be accessed by the getIssueList() function afterwards within the same expression.

Syntax
setIssueList(variableName, issueList) #Output: Issue list
Examples
Expression parserDescription
setIssueList("myIssueList",["KEY-1","KEY-2"])

This example creates a variable named "myIssueList", sets the values "KEY-1" and "KEY-2" and returns it accordingly.

setIssueList("st", issue.subtasks())
This example creates a variable named "st", stores all subtasks as an issue list and returns it accordingly.
Additional information

Parameters used in this function

ParameterInput (data type)Description
variableName

TEXT

A text for the variable name.
issueList

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

To retrieve the value stored in the variable, use the function getIssueList() within the same expression.


Use cases and examples