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
|
UI Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
This function returns | |||||||||
Page properties | |||||||||
| Status | ||||||||
Tech review |
| ||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
a
Status | ||||||
---|---|---|---|---|---|---|
|
.
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 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Output 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 The 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(number elementissueList1, number 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 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|