// Get the values of the Product field
def cf_product = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Product")
def product = cf_product.getValue(issue) as List
//Products teams are responsible for
def droptableProducts = ["Image Scaling / Cleanup", "OCR", "Extraction", "Recognition", "Annotation", "Text Classification", "Purge", "Solarity Services - Legacy (Java)", "Group Separation", "Model Builder", "Validation (TP)"]
...Any usual list comparison is failing at this point...
Is there something special I'm missing about pulling in list data from a multiselect customfield?
I've tried intersect, disjoint, and iterating with .any and .every and all methods seems to be failing. And by failing I mean returning unexpected results.
Case:
The value "Annotation" is in the product field.
def commonValue = product.intersect(droptableProducts)
If I return product I get "[Annotation]" as expected.
If I return droptableProducts I get the list as expected.
If I return commonValue, I get an empty list.
Help! 