Hi there,
I want to query based on components matching with some string?
For example "component !~ 'string abc'" doesn't work for component.
And I want to use wildcards like "component !~ 'string *'"
Wich operators schould I use for "component DOES NOT CONTAIN 'string *'"? Are there other operators?
I'm using JIRA 6.0.3
The only operators you can use for component are =, !=, in , not in ,is and is not. So no chance out of the box.
Maybe you could use script runner plugin which has an additional JQL function
component in componentMatch(
"string.*"
)
i want to search for issues that have ONLY a certain component.
is there a possibility to do that with a regex expression?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Long after the fact, this looks like it has the intended effect:
component in (MBA) AND component not in (DV)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried several solutions for this myself before I came to one that worked for me.
(component is EMPTY OR component not in ("componentName"))
I wanted to show any component, even if the component is empty. Because of the architecture, the component field does not exist until a component is added to the issue. Therefore, component != or something like this will not work, because the component field does not exist and cannot be parsed, so it will return an empty issue list.
Also, just slamming an OR into your existing JQL will break the rest of your filter, so you have to wrap the whole thing in parenthesis.
Hope this helps someone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try if
https://marketplace.atlassian.com/plugins/pt.lt.lfcribeiro.jira.jqlLTFunctions
Solves your problem, nevertheless it will let you run SQL functions using executeQuery()
Regards,
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.