this is what I have and it doesn't seem to work.
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager();
CustomField CReqTypeField = customFieldManager.getCustomFieldObjectByName('Customer Request Type');
def rt = issue.getCustomFieldValue(CReqTypeField);
CustomField ReqTypeField = customFieldManager.getCustomFieldObjectByName('Request Type');
MutableIssue issueToUpdate = (MutableIssue) issue;
IssueManager issueManager = ComponentAccessor.getIssueManager();
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot