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?


Try if

Solves your problem, nevertheless it will let you run SQL functions using executeQuery()


Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,316 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot