Interface SprintManager
- All Superinterfaces:
GreenHopperCache
- All Known Implementing Classes:
SprintManagerImpl
Sprint manager as well as cache
-
Method Summary
Modifier and TypeMethodDescriptioncreateSprint
(Sprint sprint) Create a sprint given the objectcreateSprint
(Map<String, Object> fields) Create a sprint given the fieldsdeleteSprint
(Sprint sprint) Delete a sprintDeprecated.Returns sprints in the given state managed by the auto start/stop sprints functionality.getSprint
(long id) Get a sprint given its id.getSprints
(EnumSet<Sprint.State> states) Collects all sprints with the given statesgetSprintsByNameAndState
(String searchQuery, EnumSet<Sprint.State> states) getSprintsByNameAndStateAndRapidViews
(String searchQuery, EnumSet<Sprint.State> states, Set<Long> rapidViewIds) getSprintsForView
(RapidView rapidView) Get all sprints owned by the passed rapid viewgetSprintsForView
(Long rapidViewId, EnumSet<Sprint.State> states) Collects all sprints owned by the passed rapid view with one of the given statesgetSprintStateAuditLog
(Sprint sprint) Gets the audit log data for a sprintlogStateChange
(Sprint updatedSprint, com.atlassian.jira.user.ApplicationUser user) Log the opening/closing of a sprintswapSprints
(Sprint sprintA, Sprint sprintB) Swap the sequence of the two sprint objects.updateSprint
(Sprint sprint) Update a sprintMethods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache
flushCache
-
Method Details
-
getSprint
Get a sprint given its id. -
getAllSprints
Deprecated.Get all sprints -
getAllSprintIdsByState
-
getSprints
Collects all sprints with the given states- Parameters:
states
- the states to include- Returns:
- a set of sprints
-
getSprintsForView
Get all sprints owned by the passed rapid view -
getSprintsForView
@Nonnull ServiceOutcome<Collection<Sprint>> getSprintsForView(Long rapidViewId, EnumSet<Sprint.State> states) Collects all sprints owned by the passed rapid view with one of the given states -
logStateChange
@Nonnull ServiceResult logStateChange(Sprint updatedSprint, com.atlassian.jira.user.ApplicationUser user) Log the opening/closing of a sprint -
getSprintStateAuditLog
Gets the audit log data for a sprint -
createSprint
Create a sprint given the object -
createSprint
Create a sprint given the fields -
updateSprint
Update a sprint -
swapSprints
Swap the sequence of the two sprint objects.- Parameters:
sprintA
- the first sprintsprintB
- the other sprint- Returns:
- outcome of the operation
-
deleteSprint
Delete a sprint -
unmapAllSprints
-
getSprintsByNameAndState
@Nonnull ServiceOutcome<Collection<Sprint>> getSprintsByNameAndState(String searchQuery, EnumSet<Sprint.State> states) -
getAutoStartStopSprintsByState
@Nonnull ServiceOutcome<Collection<Sprint>> getAutoStartStopSprintsByState(@Nonnull Sprint.State state) Returns sprints in the given state managed by the auto start/stop sprints functionality.- Parameters:
state
- state of sprints- Returns:
- a collection of sprints
-
getSprintsByNameAndStateAndRapidViews
@Nonnull ServiceOutcome<Collection<Sprint>> getSprintsByNameAndStateAndRapidViews(String searchQuery, EnumSet<Sprint.State> states, Set<Long> rapidViewIds)
-