I am just trying a take the value from a custom field and add it to the current summary. I am using the code below in script runner and in the result I get the new summary that I want, but the issue summary does not actually update. Please help
ComponentManager componentManager = ComponentManager.getInstance()
IssueManager issueManager = componentManager.getIssueManager()
CustomFieldManager customFieldManager = componentManager.getCustomFieldManager()
def issue = componentManager.getIssueManager().getIssueObject("PR047EXE-74")
// gets the value from a custom field which is 123
def QCNum = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'QC Defect ID'};
def QCNumValue = issue.getCustomFieldValue(QCNum);
//add the 123 and a : before the current summary
def newSummary = QCNumValue + ": " + issue.summary;
issue.summary = newSummary;
//in script runner the result is "123: summary" which is exactly what I want the summary to update to but it never updates... it just stays "summary" --- please help