/
arrayFind
arrayFind
Description
Finds an element inside the collection and returns its index. If the element is not found, it returns -1.
Parameters
Return Type
Number
Example
return arrayFind(usersInGroups({"jira-users"}), "admin");
The result of the function is the index of the searched element in the array returned by usersInGroups(). If the array contains duplicates, the function returns the index of the first occurrence of the searched element.
See also
, multiple selections available,
Related content
arrayElementExists
arrayElementExists
Read with this
Array Functions
Array Functions
Read with this
Predefined structure types reference
Predefined structure types reference
Read with this
subarray
subarray
Read with this
Power Scripts for Jira
Power Scripts for Jira
Read with this
excludeSubarray
excludeSubarray
Read with this