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: 

Cascading Option: how to check empty values of childOption, no matter the parentOption?

Vladimiro Tavares
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!
September 23, 2020

Hello all.

We have a custom field that uses the Cascading Option. So you select something from a pull-down on the left and then you're supposed to select something from the pull-down on the right. But sometimes people don't select anything from the pull-down on the right.

I want to create a Filter that will show me all of the Issues for which someone has selected something in the pull-down on the left but has not selected anything from the pull-down on the right.

From the page I consulted - https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-functions/ - the only solution I figured out was to use OR function to have each and all values of parentOption field being filtered, i.e., something like this:

myCustomField in cascadeOption("parentOptionValue1",none) OR myCustomField in cascadeOption("parentOptionValue2",none) OR myCustomField in cascadeOption("parentOptionValue3",none)...

Is there any solution more elegant, less error prone and easier to maintain?

Thank you very much in advance for your reply and for your good understanding.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Gustavo Félix
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 Champions.
September 23, 2020

A workaround that I'm thinking(I dont think is elegant), with the plugin that I have (scriptrunner), is to save the childOption selected from your issue into a customField.
That way you can do a jql like "project = XXX and yourCascadeField is not empty and yourChildCustomField is empty "

I hope you can find a better way, maybe a jql/sql specialized plugin could do the trick.

Vladimiro Tavares
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!
September 25, 2020

Thank you for the tip but I do prefer not to use the script. Thank you anyway. 

Like # people like this