public IterationLink setIteration(Iteration iteration) {
   // TODO this needs to link to the iteration page
   setTargetHistoryToken(
       new ProjectPlace.Tokenizer()
           .getToken(
               new ProjectPlace(
                   iteration.getProject().getOwner().getUsername(),
                   iteration.getProject().getSlug())));
   setText(iteration.getNumber() + "");
   return this;
 }
Exemple #2
0
  public boolean isInProgress() {
    boolean result = false;

    if (isDefault()) {
      boolean defaultIsInProgress = true;
      Set<Iteration> iterations = project.getAvailableIterations();
      for (Iteration iteration : iterations) {
        if (!iteration.isDefault() && iteration.isInProgress()) {
          defaultIsInProgress = false;
        }
      }
      result = defaultIsInProgress;
    } else if ((committedOn != null) && (closedOn == null)) {
      result = true;
    }

    return result;
  }
 public IterationLink(Iteration iter) {
   super(iter.getNumber() + "");
   setIteration(iter);
 }