Using Groovy for the first time through JMWE
Setting up a post function that will create a new issue and assign it to a Project using a custom field (Single Select List) value.
Tried:
x = issue.get("customfield_1000")
issue.setProjectObject(x)
Also tried:
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def customField = customFieldManager.getCustomFieldObjectByName("Project")
def newValue = issue.getCustomFieldValue(customfield)
issue.setProject(newValue)
All with no luck. Thanks for the help in advance !