I'd like to set the reporter value of the new issue that is created to either:
a) the value of a custom field from the original issue (a username custom field called Developer)
b) the username of the person executing the transition that had the clone post-function
Here's what I've tried so far, which doesn't work:
issue.reporter = originalIssue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("Developer"))