Ejemplo n.º 1
0
 public boolean setEffortToFix(DefaultIssue issue, @Nullable Double d, IssueChangeContext context) {
   if (!Objects.equal(d, issue.effortToFix())) {
     issue.setEffortToFix(d);
     issue.setUpdateDate(context.date());
     issue.setChanged(true);
     // Do not send notifications to prevent spam when installing the SQALE plugin,
     // and do not complete the changelog (for the moment)
     return true;
   }
   return false;
 }
Ejemplo n.º 2
0
 public boolean setPastEffortToFix(
     DefaultIssue issue, @Nullable Double previousEffort, IssueChangeContext context) {
   Double currentEffort = issue.effortToFix();
   issue.setEffortToFix(previousEffort);
   return setEffortToFix(issue, currentEffort, context);
 }