Class ProjectImportServiceImpl
java.lang.Object
com.atlassian.greenhopper.imports.ProjectImportServiceImpl
- All Implemented Interfaces:
ProjectImportService
Provides project import functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSprintCFValue
(Long issueId, Long sprintId) Add an issue to a sprint.createSprint
(Map<String, Object> fields) Create a sprint with the given attributes, and returns the newly created sprint id.Get the custom field that is the default ranking field.Get all the fields that represent rank fields.Adds a rank entry for the field and issue.
-
Constructor Details
-
ProjectImportServiceImpl
public ProjectImportServiceImpl()
-
-
Method Details
-
createSprint
Description copied from interface:ProjectImportService
Create a sprint with the given attributes, and returns the newly created sprint id.- Specified by:
createSprint
in interfaceProjectImportService
- Parameters:
fields
- attributes defining the SprintAO object- Returns:
- service outcome containing the newly created sprint id
-
addSprintCFValue
Description copied from interface:ProjectImportService
Add an issue to a sprint.- Specified by:
addSprintCFValue
in interfaceProjectImportService
- Parameters:
issueId
- is the issuesprintId
- is the sprint
-
rankAfter
Description copied from interface:ProjectImportService
Adds a rank entry for the field and issue.- Specified by:
rankAfter
in interfaceProjectImportService
- Parameters:
fieldId
- id of the lexo rank custom fieldissueId
- id of the issue to be rankedpreviousIssueId
- (optional) id of the issue that this issue should be ranked after- Returns:
- service outcome for the success of the operation
-
getDefaultRankFieldId
Description copied from interface:ProjectImportService
Get the custom field that is the default ranking field.- Specified by:
getDefaultRankFieldId
in interfaceProjectImportService
- Returns:
- the default rank field
-
getRankFieldIds
Description copied from interface:ProjectImportService
Get all the fields that represent rank fields.- Specified by:
getRankFieldIds
in interfaceProjectImportService
- Returns:
- a list of all fields that have a type of rank
-