Page History
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Supported list types
|
Number list
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function returns the index / position of a specified element in a number list. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
indexOf(number, numberList) #Output: Number |
UI Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
UI Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
Parameters used in this function
| ||||||||||||||||||
Page properties | ||||||||||||||||||
| Status | |||||||||||||||||
Tech review |
| |||||||||||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Returns a
Status | ||||
---|---|---|---|---|
|
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Supported list types
|
|
UI Expand | ||
---|---|---|
| ||
This |
Number list
UI Text Box | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
The function returns a
If the number is not part of the number list, the function returns 0. |
Text list
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant for text lists. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
indexOf(number elementtext, number list ltextList) #Output: Number |
UI Expand | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
The function returns a
|
If the text is not part of the text list, the function returns 0. |
Issue list
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant for issue lists. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
indexOf(issueKey, issueList) #Output: Number |
UI Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
UI Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
This function returns a
If the issue key is not in the issue list, the function returns 0. |
UI Text Box | ||||||
---|---|---|---|---|---|---|
| ||||||
Variant where you define an issue list instead of an issue keyThe function returns a
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
indexOf(string elementissueList1, string list lissueList2) #Output: Number |
UI Expand | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
The This function returns a
If the first issue list is empty or the second list does not contain the issue, the function returns 0. |
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|