How do I integrate component filtering in my filter query?

Ariane Boisvert July 5, 2017

(please forgive my very basic knowledge of JIRA)

I already have another condition in my filter query, but I want to add component filtering on top of it.

This is my first part: project = RTD ORDER BY Rank ASC

It works, so far so good. But I want to add about 12 components too.

What would be the correct syntax and way to separate them.

Thanks for your help.

Cheers,

1 answer

0 votes
Thomas Schlegel
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 5, 2017

Hi Ariane,

you can combine different conditions with AND or OR, so your JQL would look like:

project = RTD and component = <...> order by rank ASC

or if you want to query more than one component:

project = RTD and component in (component1, component2, ...) order by rank ASC

 

Ariane Boisvert July 5, 2017

Hey Thomas, thank you for this quick reply!

The query will not accept "AND" or "and" after "project = RTD ORDER BY Rank ASC". 

It doesnt accept "in" either and suggests ASC. If I use ASC and then (component1, component2,...) it says it cant sort using the component I mentionned.

Am I missing something?

 

Thanks again,

Thomas Schlegel
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 5, 2017

order must be the last command in your query. 

Try it first without the "order by":

project = RTD and component = ...

Ariane Boisvert July 5, 2017

Dude omg that woked, thank you so much.

The veil has lifted, i can see clearly again.

 

You are my hero.

Danke!!!

Thomas Schlegel
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 5, 2017

Bitteschön :-)

Suggest an answer

Log in or Sign up to answer