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

This widget could not be displayed.

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)
This widget could not be displayed.


Try if

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


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

76 views 1 0
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