Versions Compared

Key

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


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short description

Creates a variable named variable_name for storing a text list , and assigns it a value, which is also returned in order to be used within an expression.

Output Statussubtletruetitletext listAvailable since

Status
subtletrue
colourRed
titleneeds lookup

UI Text Box
sizemedium
typeinfo

This function creates a variable named  variable _name  for storing a text a text list, and assigns it a value, which is also returned in order to be used within an directly sets the values.

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


Code Block
languagebash
titleSyntax
linenumberstrue
setStringList(string variable_namevariableName, text list valuetextList) #Output: Text list


UI Expand
titleExamples


Expression parserDescription


Code Block
languagebash
linenumberstrue
setStringList("myStringListmyTextList",["Hello","World"])


This example creates the variable "myStringList" and assigns it the value "myTextList", sets the values ["Hello","World"]" and returns it accordingly.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxvariableName

Status
subtletrue
titledata typetext

A text for the variable nameParameter description.
xxxnumberList

Status
subtletrue
titledata typeissue list

Any given text listParameter description.



UI Expand
titleOutput

This function returns

Status
subtletrue
titletext list


UI Text Box
typetip

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



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_setstringlist" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

It would be the same as setBoolean(), but in the variable we would get a string list.




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

Creates a variable to temporarily store a text list.

Output

Status
subtletrue
title

Text list

text list

Available since

Status
subtletrue
colourBlue
title2.6.0

Label

Status
colourRed
titlestaff pick