Forums

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

Multiselect custom field filtering by value from another multiselect custom field

Amar Ghag June 24, 2020

Hi Community,

I'm looking for groovy script for scriptrunner to allow filtering of multiselect custom field B based on multiselect custom field A values.

I've tried Cascading selects and they don't work for me due to the multi select need as output.

Custom field B will filter based on the multiselection of A and allow a selection of multiple values.

  1. Field A (Multiselect) :  
    • 1
      • Apple
      • Orange
    • 2
      • Pineapple
      • Grapes
    • 3
      • Banana
    • 4
      • (Blank)
  2. Field B (Apple, Orange,Pineapple ,Grapes,Banana)

Case 1:

If users select 1 & 3 from field A then field B should display Apple, Orange,Banana as multiselect list.

Case 2:

If users select 1 &  from field A then field B should display Apple, Orange,Pineapple,Grapes as multiselect list.

Case 3 :

If users select 4 &  from field A then field B should display as none.

Can anyone suggest a script to achieve this ?

Thanks,

Amar

0 answers

Suggest an answer

Log in or Sign up to answer