Skip to end of banner
Go to start of banner

arrayIntersect

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

This routine is available starting with SIL Engine™ 2.5.7.

Syntax

arrayIntersect(arrayName1, arrayName2)

Description

Intersect between two arrays.

Parameters

Parameter name

Type

Required

Description

arrayName1

array

Yes

First array.

arrayName2arrayYesSecond array.

Return Type

array

Example

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

  • No labels