Filter components with JQL

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

2 answers

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.

  1. no component -> issue is not in filter
  2. component is MBA and DV -> issue is not in filter
  3. component is MBA -> issue is in filter

is there a possibility to do that with a regex expression?

Long after the fact, this looks like it has the intended effect:

component in (MBA) AND component not in (DV)

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,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,084 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you