1.1 --- a/src/main/java/de/uapcore/lightpit/entities/Issue.java Fri Oct 23 11:44:02 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/entities/Issue.java Fri Oct 23 12:26:08 2020 +0200 1.3 @@ -171,6 +171,15 @@ 1.4 this.eta = eta; 1.5 } 1.6 1.7 + /** 1.8 + * An issue is overdue, if it is not done and the ETA is before the current time. 1.9 + * @return true if this issue is overdue, false otherwise 1.10 + */ 1.11 + public boolean isOverdue() { 1.12 + return eta != null && status.getPhase() != IssueStatus.PHASE_DONE 1.13 + && eta.before(new Date(System.currentTimeMillis())); 1.14 + } 1.15 + 1.16 @Override 1.17 public boolean equals(Object o) { 1.18 if (this == o) return true;