This function returns a specific part of a text by setting the start index and the end index of the text to be returned.
Bash
substring(text, startIndex, endIndex) #Output: Text
Examples
Take this text as an example:
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
H |
A |
M |
B |
U |
R |
G |
E |
R |
S |
|
A |
R |
E |
|
D |
E |
L |
I |
C |
I |
O |
U |
S |
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns ARE |
|
Bash
|
This example returns DELICIOUS |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
Text |
Any given text. |
|
|
Number |
A number that specifies the index of the first character for the substring. The index starts at 0. |
|
|
Number |
A number that specifies the index-1 of the last character for the substring. The length of the substring is endIndex → startIndex. |
Output
This function returns a text
📚 Use cases and examples
| Use case | Workflow function | Parser functions |
|---|---|---|
| Set the next fix version | ||
| Shorten the summary to a maximum number of characters | ||
| Set custom IDs for each issue | ||
| Calculate custom sequence numbers |