From 713f30551c3b5b2d99a023d48a930475e1002c21 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Wed, 03 Dec 2014 14:58:19 -0500 Subject: [PATCH] Merged #227 "Small adjustments to allow integration with Gerrit Code Review" --- src/main/java/com/gitblit/tickets/TicketMilestone.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gitblit/tickets/TicketMilestone.java b/src/main/java/com/gitblit/tickets/TicketMilestone.java index c6b4fcc..dacedda 100644 --- a/src/main/java/com/gitblit/tickets/TicketMilestone.java +++ b/src/main/java/com/gitblit/tickets/TicketMilestone.java @@ -38,6 +38,18 @@ status = Status.Open; } + public boolean isOpen() { + return status == Status.Open; + } + + public boolean isOverdue() { + return due == null ? false : System.currentTimeMillis() > due.getTime(); + } + + public void setDue(Date due) { + this.due = due; + } + public int getProgress() { int total = getTotalTickets(); if (total == 0) { -- Gitblit v1.9.1