componentMatches()

Description:

Perform searches based on components which their name match with the provided regular expression.

Note:
This function uses Java native String.matches() method internally to determine the components affected by the given expression.
See Pattern Java Class for further information.


SyntaxcomponentMatches(regex)
Available sincev1.0.0-RELEASE
Supported fieldsComponent
Supported operatorsIN , NOT IN
Unsupported operators

= , != , ~ , !~ , > , >= , < , <=

IS , IS NOT , WAS , WAS IN , WAS NOT , WAS NOT IN , CHANGED

Examples:

• Find issues in components that their name start with 'Database':

component IN componentMatches("Database.*")

• Find issues in components that their name contais 'screen':

component IN componentMatches(".*screen.*")

• Find issues in components that their name end with 'Core':

component IN componentMatches(".*Core")

Real World Use Cases:

· JRASERVER-25390 - In the issue navigator, component field should support the operator '~' (by Emmanuel Rouillard)
·
JRASERVER-40228 - Would like to be able to pattern match/partial search "labels" and "components" (by Nathan Neulinger)




JQL Function Reference