setIssueList()

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.


Bash
setIssueList(variableName, issueList) #Output: Issue list


Examples

Expression parser

Description

Bash
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.

Bash
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

Parameter

Input (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