Hi,
I'm trying to create a simple scripted validator via Script Runner that compares two multi user picker fields (Type: Collection):
Actual Fruits contains: apple, banana
Necessary Fruit List contains: apple, banana, orange
If the Actual Fruits field contains at least one value from the Necessary Fruit List, the validation should be true. The Actual Fruits field can contain also two, more or other fruits, but it needs to validate true if at least one fruit is there from the Necessary Fruit List.
I tried the following codes, but all of them are validating false:
cfValues['Actual Fruits']*.name.contains(cfValues['Necessary Fruit List']*.name
cfValues['Actual Fruits']*.name.contains(cfValues['Necessary Fruit List']*.name.any())
cfValues['Actual Fruits']*.name.contains(cfValues['Necessary Fruit List']*.name).any()
Thanks for your help.
Example assertion below:

