Exemple #1
0
  public SimpleIssue(Issue issue) {
    this.id = issue.getId();
    this.assignee = issue.getUserByAssignee().getUsername();
    this.subject = issue.getSubject();
    this.priority = issue.getPriority().getDesc();
    this.status = issue.getStatus().getDesc();
    this.tracker = issue.getTracker().getName();

    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    this.updateTime = df.format(issue.getUpdateTime());
    this.startDate = issue.getStartDate().toString();
    this.dueDate =
        null == issue.getDueDate() ? (new Date()).toString() : issue.getDueDate().toString();
  }
Exemple #2
0
 public FormIssue(Issue issue) {
   this.id = issue.getId();
   this.projectId = issue.getProject().getId();
   this.parentId = null != issue.getParent() ? issue.getParent().getId() : null;
   this.trackerId = issue.getTracker().getId();
   this.subject = issue.getSubject();
   this.status = issue.getStatus();
   this.priority = issue.getPriority();
   this.assigneeId = issue.getUserByAssignee().getId();
   this.startDate = issue.getStartDate();
   this.dueDate = issue.getDueDate();
   this.estimatedTime = issue.getEstimatedTime();
   this.progress = issue.getProgress();
   this.description = issue.getDescription();
 }