I have a custom field of type project picker and i want to get the value selected, here my code
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.fields.CustomField;
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.project.Project
def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_11001");// ID of my custom field.
def value = (String)issue.getCustomFieldValue(customField);
log.info("the project selected is"+value)
and i get an error : the variable issue is undeclared
any help !!