Hello,
I am writing a groovy code. My Code has two List of type Option value fetched from custom field(NewRes and OldRes).
def ListA = issue.getCustomFieldValue(newRes) as List<Option>
def ListB= issue.getCustomFieldValue(oldRes) as List<Option>
Assume that Option List A and List B has following set of values:
List A : { os, op, jp, zp} and
List B : {op,zp}
How to find elements such that they are in List A but not in List B.
I need a third List option(List C) with elements in A but Not in B i.e List C must contains { os, jp}
Please reply. Thanks !