This function returns true, if the given text matches a regular expression, otherwise it returns false.


matches(text, regex) #Output: Boolean



Parser expressionDescription


%{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

ParameterInput (data type)Description
text

Any given text.
regex

A valid regular expression that the given text will be checked against.



This function returns a


Use cases and examples



Short description

Checks, if the given text matches the given regular expression.

Output