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

Compare with Current View Page History

« Previous Version 8 Next »

Supported list types

Number list

This function returns a number representing the index of numeric value element in number list l. Zero is returned when the element is not found in l.

Syntax
indexOf(number element, number list l) #Output: Number
Examples
Parser expressionDescription
indexOf(1, [5, 2, 1, 4, 1])

This example returns the number 3

Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

This function returns a NUMBER


Text list

This function returns a number representing the index of text element in the text list l. Zero is returned when the element is not found in l.

Syntax
indexOf(string element, string list l) #Output: Number
Examples
Parser expressionDescription
indexOf("blue", ["red", "blue", "green"])

This example returns the number 2

Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

The function returns a NUMBER


Issue list

This function returns a number representing the index in issue list l of issue with key issue_key. Zero is returned when issue is not found in l.

Syntax
indexOf(string issue_key, issue list l) #Output: Number
Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

This function returns a NUMBER


Variant where you define an issue list instead of issue_key.

Syntax
indexOf(issue list element, issue list l) #Output: Number
Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

This function returns a NUMBER