Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | arrayIntersect(arrayName1, arrayName2) | Package | array | Alias | | Pkg Usage | intersect(arrayName1, arrayName2) | |
Description
Excerpt |
---|
|
Intersect between two arrays. |
...
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
arrayName1 | Array | Yes | First array. | arrayName2 | Array | Yes | Second array. | |
Return Type
Array
...
Example
Code Block |
---|
string[] developers= usersInGroups({"jira-developers"});
string[] administrators = usersInGroups({"jira-administrators"});
return arrayIntersect(developers, administrators); |
The result returned by the routine is an array that contains the unique elements found in both developers and administrators groups.
The above code can be written also as shown below:
Code Block |
---|
return usersInGroups({" jira -developers ", " jira -administrators "}); |
That's it.
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "array_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|