50 |
50 |
51 /** |
51 /** |
52 * An issue is overdue, if it is not done and the ETA is before the current time. |
52 * An issue is overdue, if it is not done and the ETA is before the current time. |
53 */ |
53 */ |
54 val overdue get() = status.phase != IssueStatusPhase.Done && eta?.before(Date(System.currentTimeMillis())) ?: false |
54 val overdue get() = status.phase != IssueStatusPhase.Done && eta?.before(Date(System.currentTimeMillis())) ?: false |
|
55 |
|
56 fun hasChanged(reference: Issue) = !(component == reference.component && |
|
57 status == reference.status && |
|
58 category == reference.category && |
|
59 subject == reference.subject && |
|
60 description == reference.description && |
|
61 eta == reference.eta && |
|
62 affected == reference.affected && |
|
63 resolved == reference.resolved) |
55 } |
64 } |
56 |
65 |