Versions Compared

Key

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

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 1.0.

Syntax

arrayElementExists(array, elem)

Description

Excerpt

Returns "true" if the element exists in the array , and "false" otherwise.

Alias

elementExists(array, elem)

Parameters

Parameter name

Type

Required

Description

array

array

Yes

The array

Array where the element existence is checked.

element

any

Yes

The element whose

Element the existence is checked for.

Returns

boolean

Example

Code Block
if( elementExists(watchers, currentUser()) ){
    print("You are watching this issue.");
}

The routine returns "true" if currentUser is in the watchers array and if the result is "true" a message is printed.

Notes

Note

If elem is not the same type as declared in the array definition, the routine returns "error".

See also

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "array_routines"
labelsarray_routines