Brothers, Sisters
simple question. I am building transition Validator.
I need to write simple Groovy condtion. I have a customfield_11111 with possible values, "Yes" and "No".
My validator must check if customfield_11111 = Yes.
Thats it.... please, I know its dump question but I dive too deep probably instead of quick win,
This is what i achieved so far but with no results 
import com.atlassian.jira.component.ComponentAccessor
def issue = issue // Bieżący problem w kontekście
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def field1 = customFieldManager.getCustomFieldObject("customfield_11111")
def value1 = issue.getCustomFieldValue(field1)
if (value1 = "Yes") {
return true // Walidacja przekracza
} else {
return false // Walidacja nie powiodła się
}