public interface

BackupProject

com.atlassian.jira.imports.project.core.BackupProject
Known Indirect Subclasses

Class Overview

Represents information about a single project gleaned from an XML backup.

Public Methods

public boolean containsIssue (String id)

Parameters
id an issue id that can be converted to a Long
Returns
  • true if the backup project contains the issue, false otherwise.

public Collection<Object> getAdditionalData (String key)

Get additional data stored against this key.

Plugins should namespace keys appropriately to ensure they can store data uniquely.

Plugins would typically store information about what configuration items are used and may be required by items that will be related.

For example: A Plugin that provides Test Planning, might store any Test Plans that are referenced by the issues being imported.

Parameters
key Key under which this data is stored.
Returns
  • Collection of data stored under this key.

public ExternalCustomFieldConfiguration getCustomFieldConfiguration (String customFieldId)

Parameters
customFieldId the id of the custom field configuration to retrieve
Returns
  • the ExternalCustomFieldConfiguration for the custom field with the specified id, null if the project does not have the custom field with the id.

public Collection<ExternalCustomFieldConfiguration> getCustomFields ()

Returns

public Collection<Long> getIssueIds ()

Returns
  • the issue id's that are associated with the project returned from getProject().

public ExternalProject getProject ()

Returns

public Collection<ExternalComponent> getProjectComponents ()

Returns

public Collection<ExternalVersion> getProjectVersions ()

Returns

public int getSystemFieldMaxTextLength ()

Get maximum length of text system fields found in this project. Used to check if imported project does not exceed jira character limit setting.

Returns
  • maximum length of issue description, environment, comment or text custom field or 0 if project is empty