I have a Database picker field where I select the second column value of the table and that will need to be added/appended to Summary.
I have a code where it copies the value correctly to a custom text field, but change of requirement need to append to summary. Please see below and advise how to tweak the code.
Need change to this:
def oldSummary = issue.getSummary()
final newvalue = oldSummary + " - " +valueForDbPicker?.trim()
mutableIssue.setSummary(newvalue)
issueManager.updateIssue(currentUser, mutableIssue, EventDispatchOption.DO_NOT_DISPATCH, false);
The one which is working with text field :
if (textCf2) {
def changeHolder = new DefaultIssueChangeHolder()
textCf2.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(textCf2),valueForDbPicker?.trim()),changeHolder)
}
}