This function returns true
, if the given text matches a regular expression, otherwise it returns false
.
Syntax
matches(text, regex) #Output: Boolean
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 6 Next »
This function returns true
, if the given text matches a regular expression, otherwise it returns false
.
matches(text, regex) #Output: Boolean
Parser expression | Description |
---|---|
%{matches(%{issue.attachments}, ".*.txt$") ? "Text file found." : "No text file found."} | If the current issue has at least one .txt file attached, using the conditional operator, this example returns: Text file found |
%{matches("Jira Workflow Toolbox", "[JWT].+") ? "true" : "false"} | Using the conditional operator, this example returns: true |
Parameters used in this function
Parameter | Input (data type) | Description |
---|---|---|
text | TEXT | Any given text. |
regex | TEXT | A valid regular expression that the given text will be checked against. |
This function returns a BOOLEAN
Powered by Atlassian Confluence 8.5.7, themed by Refined 7.5.3 and Decadis AG