Multi-Select List contents dependent on (another) Dropdown List Selection

rsud April 21, 2014

I am looking to implement the following:

1. A user will make a selection from a dropdown list (customfieldId_11111).

2. Based on the selection from the dropdown list, another field (customfieldId_22222), which is a multi-select field, will display options, which can be selected.

Thanks.

1 answer

0 votes
Alex Perez
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.
April 21, 2014

Why not using the cascading select custom field?

One user can set only the 1srt component, and other user may choose the 2nd component based on the previous selection.

Or even this plugin? https://marketplace.atlassian.com/plugins/com.sourcesense.jira.plugin.cascadingselect

Is there any requirement to store the values in two separate custom fields?

rsud April 21, 2014

I did deploy that, but the limitation is that I can only select one item in the cascasded field. I would like the 2nd field to be a multi-select.

Alex Perez
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.
April 21, 2014

Ops, I didn't realized that.

If you're used to coding in Javascript, take a look to the links provided here https://answers.atlassian.com/questions/145476/examples-for-ajs

or here -> http://www.j-tricks.com/1/post/2012/02/some-ajs-tricks.html

The overall process is creating 2 custom fields: single select and multiselect. The multiselect should contain all values from all options of the single-select.

You should embed a script in the multiselect description that reads the single-select value and enables/disables the corresponding options in the multiselect.

HTH

rsud April 22, 2014

Would you have the JS code to do this? Thanks.

Kalpana Ramesh September 19, 2016

Hi. I have a similar query. Do you have a solution for this?

 

Rozita Mirmotalebi September 26, 2016

Thanks  I need to be able to have default value for the second field while I am choosing the first field. can you help me please?

Thanks

Suggest an answer

Log in or Sign up to answer