Hi. I want to fetch issues based on Certain Components List and need to use wild cards on components.
For eg: project="X" AND component in componentMatch("Issue Type:*")
where in the component list includes Issue Type:X, Issue Type:Y - basically I want to fetch issues related to any of the components starting with Issue Type : (any word).
I tried this above query
project="X" AND component in componentMatch("Issue Type:*")
It is not showing any error but not returning results as well. Any solution for this??????
Hi Aishwarya Rajan,
Sadly you cannot achieve the desired search using standard features on Jira, you must go for a third-party app instead. Using i.e. JQL Booster Pack you can type the following:
Search issues with components starting with 'Issue Type:' on Project EMEA
project = EMEA AND component IN componentMatches("Issue Type:.*")
Using this app you can also query other fields using regexp, check:
References:
Hope this helps you to create awesome queries <3
Kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey,
I tried the query.. it doesn't show error but does not return any results. We have prod n dev environment in jira. My query works in dev environment..but not in prod. I have tried with component Matches method too. That works in dev again n not in prod. So is it dependent on any supporting plugins or add on..that we need to install?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This JQL function is from the ScriptRunner plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have scriotRunner in prod. But still componentMatch is not working in prod. Any help on this would be appreciated.
Also,
component Matches works if we install JQL booster pack. But why isn't componentMatch not working?.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure that you have such components in prod and there are issue with these components set?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also you can have problems with indexes in prod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find more info on indexes here:
https://confluence.atlassian.com/jirakb/jira-indexing-faq-776654790.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It must be like this
project="X" AND component in componentMatch("Issue Type:.*")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.