Class ProjectImportServiceImpl

java.lang.Object
com.atlassian.greenhopper.imports.ProjectImportServiceImpl
All Implemented Interfaces:
ProjectImportService

@Service public class ProjectImportServiceImpl extends Object implements ProjectImportService
Provides project import functionality.
  • Constructor Details

    • ProjectImportServiceImpl

      public ProjectImportServiceImpl()
  • Method Details

    • createSprint

      public ServiceOutcome<Long> createSprint(Map<String,Object> fields)
      Description copied from interface: ProjectImportService
      Create a sprint with the given attributes, and returns the newly created sprint id.
      Specified by:
      createSprint in interface ProjectImportService
      Parameters:
      fields - attributes defining the SprintAO object
      Returns:
      service outcome containing the newly created sprint id
    • addSprintCFValue

      public void addSprintCFValue(Long issueId, Long sprintId)
      Description copied from interface: ProjectImportService
      Add an issue to a sprint.
      Specified by:
      addSprintCFValue in interface ProjectImportService
      Parameters:
      issueId - is the issue
      sprintId - is the sprint
    • rankAfter

      public ServiceResult rankAfter(Long fieldId, Long issueId, @Nullable Long previousIssueId)
      Description copied from interface: ProjectImportService
      Adds a rank entry for the field and issue.
      Specified by:
      rankAfter in interface ProjectImportService
      Parameters:
      fieldId - id of the lexo rank custom field
      issueId - id of the issue to be ranked
      previousIssueId - (optional) id of the issue that this issue should be ranked after
      Returns:
      service outcome for the success of the operation
    • getDefaultRankFieldId

      public Long getDefaultRankFieldId()
      Description copied from interface: ProjectImportService
      Get the custom field that is the default ranking field.
      Specified by:
      getDefaultRankFieldId in interface ProjectImportService
      Returns:
      the default rank field
    • getRankFieldIds

      public List<Long> getRankFieldIds()
      Description copied from interface: ProjectImportService
      Get all the fields that represent rank fields.
      Specified by:
      getRankFieldIds in interface ProjectImportService
      Returns:
      a list of all fields that have a type of rank