com.atlassian.greenhopper.web.rapid.sprint
Class CreateSprintHelper

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.sprint.CreateSprintHelper

@Service
public class CreateSprintHelper
extends java.lang.Object

Helper methods for the CreateSprintResource


Nested Class Summary
static class CreateSprintHelper.IssueKeysAndStatisticsCallback
          Gathers all issue keys as well as statistics field values up to (including) a lastIssue.
static class CreateSprintHelper.IssuesForSprint
          Holds the data returned by loadIssuesInSprint
 
Field Summary
static java.lang.String DATE_FORMAT_MISMATCH_CONTEXT_ID
           
 
Constructor Summary
CreateSprintHelper()
           
 
Method Summary
 ServiceOutcome<java.lang.String> createDefaultSprintName(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Creates a sprint name

Currently the name is created according to the number of sprints already created on the board

 ServiceOutcome<java.util.Set<com.atlassian.jira.issue.Issue>> loadIssues(com.atlassian.crowd.embedded.api.User user, java.util.List<java.lang.String> issuesForSprint)
          Loads all issues to be added to the sprint
 ServiceOutcome<CreateSprintHelper.IssuesForSprint> loadIssuesInSprint(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, SprintMarker sprintMarker, com.atlassian.fugue.Option<SprintMarker> previousSprintMarker)
          Loads all issues to be added to the sprint
 ServiceOutcome<com.atlassian.jira.util.lang.Pair<org.joda.time.DateTime,org.joda.time.DateTime>> parseDates(com.atlassian.crowd.embedded.api.User user, java.lang.String startDateString, java.lang.String endDateString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT_MISMATCH_CONTEXT_ID

public static final java.lang.String DATE_FORMAT_MISMATCH_CONTEXT_ID
See Also:
Constant Field Values
Constructor Detail

CreateSprintHelper

public CreateSprintHelper()
Method Detail

createDefaultSprintName

@NotNull
public ServiceOutcome<java.lang.String> createDefaultSprintName(com.atlassian.crowd.embedded.api.User user,
                                                                        RapidView rapidView)
Creates a sprint name

Currently the name is created according to the number of sprints already created on the board


loadIssuesInSprint

@NotNull
public ServiceOutcome<CreateSprintHelper.IssuesForSprint> loadIssuesInSprint(com.atlassian.crowd.embedded.api.User user,
                                                                                     RapidView rapidView,
                                                                                     SprintMarker sprintMarker,
                                                                                     com.atlassian.fugue.Option<SprintMarker> previousSprintMarker)
Loads all issues to be added to the sprint


loadIssues

@NotNull
public ServiceOutcome<java.util.Set<com.atlassian.jira.issue.Issue>> loadIssues(com.atlassian.crowd.embedded.api.User user,
                                                                                        java.util.List<java.lang.String> issuesForSprint)
Loads all issues to be added to the sprint


parseDates

public ServiceOutcome<com.atlassian.jira.util.lang.Pair<org.joda.time.DateTime,org.joda.time.DateTime>> parseDates(com.atlassian.crowd.embedded.api.User user,
                                                                                                                   java.lang.String startDateString,
                                                                                                                   java.lang.String endDateString)


Copyright © 2007-2012 Atlassian. All Rights Reserved.