Info |
---|
AvailabilityThis routine is available starting with SIL Engine™ 2.5.7. |
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 | |
...
...
Description
Excerpt |
---|
|
Intersect between two arrays. |
Intersect between two arrays.
Parameters
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 |
|
...
Return Type
arrayArray
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:
...
...
return usersInGroups({"jira-developers", "jira-administrators"});
That's it.
See also
Filter by label (Content by label) |
---|
|
...
25 | showSpace | false |
---|
cql | label = "array_routines" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|