I have two custom fields : deferred (multi-select) and Target release (single list)
Need to write a script where value of 'deferred' field (all values of multi-select) should be less than the field value 'Target Release'
Any help would be appreciated. Thanks
Hi @Mamta Verma
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def fieldObj = customFieldManager().getCustomFieldObjectByName("FieldName")
def value_field = issue.getCustomFieldValue(fieldObj)
value_field should be a List of strings for normal select or a list of Versions for a field like Fix Versions.