com.atlassian.jira.imports.project.transformer
Interface CustomFieldValueTransformer
- All Known Implementing Classes:
- CustomFieldValueTransformerImpl
public interface CustomFieldValueTransformer
Used to transform an ExternalCustomFieldValue based on the project import mapper that is provided. This should only be
used with a fully mapped and validated ProjectImportMapper.
- Since:
- v3.13
transform
ExternalCustomFieldValue transform(ProjectImportMapper projectImportMapper,
ExternalCustomFieldValue externalCustomFieldValue,
Long newProjectId)
- Transforms a custom field value by letting the custom field tell us what the value (and optionally parent value)
should be transformed into. The resulting ExternalCustomFieldValue will have a null id.
- Parameters:
projectImportMapper
- a fully populated and validated project import mapperexternalCustomFieldValue
- the value representing a single custom field value from the backup XMLnewProjectId
- the id of the project, in this JIRA instance, that the data is being imported into
- Returns:
- an ExternalCustomFieldValue that contains the transformed values and a null id, null if the custom
field has been flagged as ignored by the CustomFieldMapper, or if the custom field thinks the value should
be transformed to null, or if for some reason the issue id has not been mapped.
Copyright © 2002-2014 Atlassian. All Rights Reserved.