Create a filter Using multiple component.

Rajendra Singh July 24, 2019

Hi Guys,

I want to create a filter using multiple component, but not able to do so, I tried with component in (component name1, cmpn2,cmpn3..), but its filtering the issue of only one component.

Could you please help me to create this filter.

 

Thanks

Rajendra Singh

3 answers

1 vote
Alexey Matveev
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.
July 24, 2019

Hello,

Try to write like this:

component = "name1" and component = "name2" and component = "name3" and so on.

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 24, 2019

yep the "in" operator reflects an "OR" scenario. you have to be explicit w/ "AND"

Rajendra Singh July 24, 2019

Hi Alexey,

My query is Project="ABC" and Component="EFG" and Component="IJK"

its resulting only the issue of Component IJK.

 

Thanks

Rajendra Singh

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 24, 2019

let's clarify what your requirement is...

  1. if you wish to return only issues that have all three components: ABC, EFG, IJK then you would use - component = ABC AND component = EFG AND component = IJK
  2. if you wish to return issues that have any one of the components then you would use - component in (ABC, EFG, IJK)

you state that when you use the query described in #1 you get those issues w/ IJK only? Can you please run the following separate queries:

component = ABC

component = EFG

component = IJK

and observe the results. Are there any issues with all three components listed?

Rajendra Singh July 24, 2019

Thanks Jack,

I want the issue of all three component (1.)

I have checked one by one  and I am getting the result from every component.

 

Thanks

Rajendra Singh

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 24, 2019

are you on server or cloud? can you share a few screenshots that exhibit the issue? What I would want to see is an image that shows an issue w/ all three components listed followed by a query and the results that should pick up the issue but does not.

Like Alexey Matveev likes this
0 votes
Rajendra Singh July 26, 2019

Thanks Everyone,  I got the result now, using the In operator, because of the duplicate issues i guess i was not getting the correct count. 

I will check the duplicates  and will get beck to you guys.

 

 

Thanks

Rajendra Singh

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 24, 2019

Dear @Rajendra Singh ,

I just created 2 issues. One with component AAA, the other with components AAA and BBB.

The query

component in (AAA,BBB)

returned both.

So either this is a bug in your Jira or something else is different. My Jira is 7.13.5

So long

Thomas

Rajendra Singh July 24, 2019

Hi Thomas,

I have tried with this also like

Project="ABC" and Component in ("EFG","HIJ")

but unfortunately the result set is the issues from "EFG" 

 

I am Using 8.2.3.

 

Thanks

Rajendra Singh July 24, 2019

Any Idea Guys, I am really tired with this.

 

 

Thanks

Rajendra Singh

Madhu Mullangi July 25, 2019

Hi @Rajendra Singh I too on 8.2.3 same as U.

 

Please refer the below attached Images. One....PNGTwo....PNG

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 25, 2019

Dear @Madhu Mullangi , @Rajendra Singh ,

I am a bit lost with your observations.

Like shown in the upper two screen shots the JQL is Ok

"ANY ISSUE THAT HAS "ONE" AND/OR "TWO" AS A COMPONENT"

What do you want to achieve?

"ANY ISSUE THAT HAS "ONE" AND "TWO" AS A COMPONENT"

Then you have to do as described in the other post.

So long

Thomas

Suggest an answer

Log in or Sign up to answer