Beispiel #1
0
 public boolean setAuthorLogin(
     DefaultIssue issue, @Nullable String authorLogin, IssueChangeContext context) {
   if (!Objects.equal(authorLogin, issue.authorLogin())) {
     issue.setFieldChange(context, AUTHOR, issue.authorLogin(), authorLogin);
     issue.setAuthorLogin(authorLogin);
     issue.setUpdateDate(context.date());
     issue.setChanged(true);
     // do not send notifications to prevent spam when installing the developer cockpit plugin
     return true;
   }
   return false;
 }