java.lang.Object
com.atlassian.greenhopper.service.sprint.Sprint
All Implemented Interfaces:
com.atlassian.jira.entity.WithId

@ExperimentalApi public class Sprint extends Object implements com.atlassian.jira.entity.WithId
The object which represents single iteration in Scrum Methodology.
Since:
6.7
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface com.atlassian.jira.entity.WithId
      Returns:
      the id of the sprint.
    • getRapidViewId

      public Long getRapidViewId()
      Returns:
      the id of the RapidView on which sprint was created.
    • getState

      public Sprint.State getState()
      Returns:
      the state of the sprint.
    • getName

      public String getName()
      Returns:
      the name of the sprint.
    • getStartDate

      @Nullable public org.joda.time.DateTime getStartDate()
      Returns:
      the date when the sprint is supposed to start. May be null if sprint hasn't been started or the start dates hasn't been planned.
    • getActivatedDate

      @Nullable public org.joda.time.DateTime getActivatedDate()
      Returns:
      the date when the sprint has started. May be null if sprint hasn't been activated (started).
    • getEndDate

      @Nullable public org.joda.time.DateTime getEndDate()
      Returns:
      the date when the sprint suppose to end. May be null if sprint hasn't been started.
    • getCompleteDate

      @Nullable public org.joda.time.DateTime getCompleteDate()
      Returns:
      the date when sprint was completed. May be null if sprint hasn't been closed.
    • getSequence

      public Long getSequence()
      Returns:
      the number which determine sprints order in the backlog. Initially is equal to the sprint id.
    • getGoal

      @Nullable public String getGoal()
      Returns:
      the the sprint's goal. Initially - empty.
    • hasGoal

      public boolean hasGoal()
      Returns:
      Bool, true if goal is defined.
    • isAutoStartStop

      public boolean isAutoStartStop()
      Returns:
      Bool, true if the auto start/stop option is enabled for the Sprint; false otherwise.
    • getIncompleteIssuesDestinationId

      @Nullable public Long getIncompleteIssuesDestinationId()
    • isFuture

      public boolean isFuture()
      Returns:
      true if sprint hasn't been started yet.
    • isActive

      public boolean isActive()
      Returns:
      true if sprint is active.
    • isClosed

      public boolean isClosed()
      Returns:
      true if sprint has been completed.
    • isSynced

      public boolean isSynced()
      Returns:
      true if sprint holds attributes matching those of associated team sprints in Jira Align.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Sprint.SprintBuilder builder()
    • builder

      public static Sprint.SprintBuilder builder(Sprint existing)