This function returns true, if the given text matches a regular expression, otherwise it returns false.
Bash
matches(text, regex) #Output: Boolean
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
If the current issue has at least one .txt file attached, using the conditional operator, this example returns: Text file found
|
|
Bash
|
Using the conditional operator, this example returns: true |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any given text. |
|
|
text |
A valid regular expression that the given text will be checked against. |
Output
This function returns a boolean
(books) Use cases and examples
| Use case | JWT feature | Workflow function | Parser functions | Label |
|---|---|---|---|---|
| Create an issue with a summary to check for attachment type |
|
Create issue | matches() |
|