Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL search for single component only

Anton Fomin April 20, 2016

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

1 vote
Anton Fomin April 21, 2016

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.

Peter T
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2016

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

Anton Fomin April 27, 2016

Thanks Peter!

Varora1406
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 10, 2019

How to add this ComponentCount?

Like Nicolas Lagier likes this
0 votes
Peter T
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 20, 2016

Hi Anton,

yes you can:

component = A and component != B

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events