Versions Compared

Key

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

The use of this routine requires the Power Scripts for Jira add-on be installed and licensed.

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

gadget_getMultiValues(argv, label)

Package

Alias

Pkg Usage

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

argv

StringĀ String []

Yes

The argv variable

label

String

Yes

The label of the multi select list/checkbox group

...

For a script that creates a multi select list like the following

Code Block
languagejs
gadget_createMultiSelectList("Multiselect", {"a", "b", "c", "d", "e"}, {"a", "c", "e"}, true, "This field is required");

The selected values may be obtained with the gadget_getMultiValues routine function:

Code Block
languagejs
string[] res = gadget_getMultiValues(argv, "Multiselect");
//res[0] = a
//res[1] = c
//res[2] = e
//The routinefunction has returned in this case an array of three strings, "a", "c" and "e".

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "gadget_routinefunction" and space = currentSpace ( )
labelsarray_routinesfunctions