Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function returns a text list with all substrings matching a given regular the result of a given Jira expression. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
findPatternjiraExpression(text, regex) #Output: Text list |
UI Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
|
UI Expand | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Parameters used in this function
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
This function returns a
|
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant where you can additionally define a list of issues which can be used within the Jira expression given as the first parameter. | bash | |||
linenumbers | true | |||
%{findPattern(%{issue.somefield},"(?<=mailto:)([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)")} |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
jiraExpression(text, issueList) #Output: Text list |
UI Expand | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
|
UI Expand | ||||
---|---|---|---|---|
| ||||
Parameters used in this function | ||||
Parameter | Input (data type) | Description | text |
Status | ||||
---|---|---|---|---|
|
regex
Page properties | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
title | text | A valid regular expression that grabs all substrings to be returned. | ||||||||||
UI Expand | ||||||||||||
| ||||||||||||
|
Code Block | ||||
---|---|---|---|---|
| ||||
findPattern("Grass is Green and Sky is Blue.", "red|green|blue") |
hidden | true |
---|
Short description | Returns all substrings matching a given regular expression. | |||||
---|---|---|---|---|---|---|
|
type | tip |
---|
If you want to ignore the case, have a look at the findPatternIgnoreCase() function.
Code Block | ||||
---|---|---|---|---|
| ||||
findPatternIgnoreCase("Grass is Green and Sky is Blue.", "red|green|blue") |
|