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();
You do NOT set a custom field value in a scripted field, those are mutually incompatible things.
Are you trying to use a scripted custom field, OR are you trying to set the value of a custom field that can hold data?
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