Page History
Page properties | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| Status | |||||||||
Tech review |
| |||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Returns the index of the specified element in a list.
Status | ||||||
---|---|---|---|---|---|---|
|
Supported list types
Table of Contents | ||||||||
---|---|---|---|---|---|---|---|---|
|
Number list
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function returns the index / position of the a specified element in a number list. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
indexOf(number, numberList) #Output: Number |
UI Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
UI Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
This 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(text, textList) #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 key. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
indexOf(issueList1, issueList2) #Output: Number |
UI Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
UI Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
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 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|