The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Can I require both fields of a cascading custom field using JQL?

lukec
Contributor
January 29, 2021

Hi, 

If I use this: 

"Product Category" not in cascadeOption(none)

I find some issues that do not have a value in the second drop down. 

How can I filter, with JQL, to see only issues that have both drop downs with a value in them?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Pramodh M
Community Champion
January 29, 2021

Hi @lukec 

First, collect all the parent options in the Cascade field "Product Category"

Then follow the JQL to get the issues where both fields are not empty

project = "projectKey" AND ( !("Product Category[Select List (cascading)]" in cascadeOption("parentOption1", none)) AND !("Product Category[Select List (cascading)]" in cascadeOption("parentOption2", none)) AND !("Product Category[Select List (cascading)]" in cascadeOption("parentOption3", none)) )

And it goes on till you have covered the parentOptions.

This will give the expected results

Please let me know if this works

Thanks,
Pramodh

lukec
Contributor
February 1, 2021

Awesome thank you

Like Pramodh M likes this
Julius Zatroch
Contributor
September 28, 2022

Hi @Pramodh M '

But how to search if we have many parentOptions?   I cannot write JQL 70lines long with all options....

Any option use "wildcard" or  something like cascadeOption(any,none)  ?