Hello
I want to check a radio button value with a groovy script.
My radio button custom fiel ID is 15002, can have 3 choose : none, oui, non.
If value is on "yes", I want a true return
Here the script I wrote, but don't work
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.Issue;
def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_15002")
def value = issue.getCustomFieldValue(customField);
if (value == "oui")
{
return true
}
Any help ?