예제 #1
0
 public boolean setProject(DefaultIssue issue, String projectKey, IssueChangeContext context) {
   if (!Objects.equal(projectKey, issue.projectKey())) {
     issue.setProjectKey(projectKey);
     issue.setUpdateDate(context.date());
     issue.setChanged(true);
     return true;
   }
   return false;
 }
예제 #2
0
 public boolean setPastProject(
     DefaultIssue issue, String previousKey, IssueChangeContext context) {
   String currentProjectKey = issue.projectKey();
   issue.setProjectKey(previousKey);
   return setProject(issue, currentProjectKey, context);
 }