String projectName = notif.getFieldValue("projectName");
String issueKey = notif.getFieldValue("key");
String author = notif.getFieldValue("changeAuthor");
EmailMessage message = new EmailMessage()
.setMessageId("issue-changes/" + issueKey)
.setSubject(projectName + ", change on issue #" + issueKey)
.setMessage(sb.toString());
if (author != null) {
message.setFrom(getUserFullName(author));
}
return message;
}