JQL search for single component only

Let's say I have many components: A, B, C, X... and so on.

Let's say I have issues with these components assigned:

  • Issue A
  • Issue A + B
  • Issue A + C
  • Issue A + X
  • .. and so on

How can I write query that selects "Issue A" only, if I may not know how many combinations A can have?

 

 

2 answers

Hi Anton,

yes you can:

component = A and component != B

 

 

Thanks Peter, but what if I have many components other's than A? Hardcoding all of them in the query and updating them each time new combination gets added is not worth it.

You have to hardcode something, otherwise it can't function.

If I understand correctly you want to do Component = A and Component != different Than A

This can be accomplished with either custom JQL or custom scripted field that shows you the number of components and in this case the JQL will be

Component = A and ComponentCount = 1.

Cheers,

Peter T

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

189 views 1 11
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