Make Cascade Select apply to more than one child field?

Tom Wilhelm June 9, 2013

The standard JIRA cascade select field type allows you to create a 2-tier cascading select where the 1st select determines which options appear in the 2nd select.

I've seen a couple of plugins that appear to support N-tier cascading, where the 1st select determines which options appear in the 2nd select, the 2ng select determines which options appear in the 3rd select, etc.

What I am seeking, but haven't found yet, is how I can have a 2-tiered cascading select where the 1st select determines which options appear in 2 seperate selects.

Has anyone else encountered a suitable solution for this?

Thanks in advance...

3 answers

1 accepted

0 votes
Answer accepted
Tom Wilhelm November 18, 2013

Thanks for reminding me. Here's a link to download the plug-in.

http://tomwilhelm.net/multicascadeselect-1.0.7.jar

The plug-in is released under a simplified BSD License. Details can be found in the LICENSE file in the root of the plugin source code.

0 votes
Wu Yanfeng July 12, 2013

You can use Javascript to do this.

Give you some example code.

If Priority is Critical,the "Select Test" custom field select values are "one/two/three"

and if Priority is Major the "Select Test" custom field values are "Value one/Value two/Value three"

Create custom feild "Select Test",the descriptiont contont as follow.

and add select values "one/two/three/value one/value two/value three".

the bond and italic words must be replaced.

==================================================================

<script type="text/javascript">

priority = document.getElementById('priority');

if (priority) {

priority.onchange=function() {

if (this.value == 2) {

target = document.getElementById('customfield_10775');

target.length=1;

target.options.add(new Option("one", 10744));

target.options.add(new Option("two", 10745));

target.options.add(new Option("three", 10746));

} else if (this.value == 3) {

target = document.getElementById('customfield_10775');

target.length=1;

target.options.add(new Option("value one", 10747));

target.options.add(new Option("value two", 10748));

target.options.add(new Option("value three", 10749));

} else {

target.style.display='none';

}

}

}

</script>

0 votes
Tom Wilhelm July 11, 2013

We had a custom plugin built to provide this functionality. It will be open source and should be available soon. I'll try to remember to provide a link when one is available.

Wu Yanfeng November 18, 2013

Can you show me the link.

thanks

Suggest an answer

Log in or Sign up to answer