This function returns true, if the given text matches a regular expression, otherwise it returns false.
true
false
matches(text, regularExpression) #Output: Boolean
matches("readme.txt", ".*\\.txt$")
This example returns a boolean value:
matches("Jira Workflow Toolbox", "[JWT].+")
matches("Admin Toolbox", "[JWT].+")
matches(%{issue.attachment.details}, "(.*text/plain.*){1,}")
This example returns
if the current issue has at least one .txt file attached. This is a perfect example for a Logical validator.
The field used in this expression is: Attachments with details
Parameters used in this function
text
regularExpression
This function returns a
Checks, if the given text matches the provided regular expression.