T
- the type of the value - this should be the same as T (transport object type) that is declared in the CustomFieldType
implementation in the app.@PublicSpi public interface CustomFieldDataHandler<T>
Modifier and Type | Method and Description |
---|---|
Optional<String> |
transformChangeLogValueForExport(com.atlassian.jira.issue.fields.CustomField customField,
com.atlassian.jira.issue.Issue issue,
String value,
String valueString,
IssueExportContext issueExportContext)
Transforms an issue history value for the given custom field to a serialized String.
|
Optional<String> |
transformIssueValueForExport(com.atlassian.jira.issue.fields.CustomField customField,
com.atlassian.jira.issue.Issue issue,
T value,
IssueExportContext issueExportContext)
Transforms an issue value for the given custom field to a serialized String.
|
Optional<T> |
transformIssueValueForImport(com.atlassian.jira.issue.fields.CustomField customField,
com.atlassian.jira.issue.Issue issue,
String value,
IssueImportContext issueImportContext)
Transform a previously serialized value for import.
|
Optional<String> transformIssueValueForExport(com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.issue.Issue issue, T value, IssueExportContext issueExportContext)
customField
- the custom field for which the value is exported. The field is of type for which this handler has been registered.issue
- the issue for which the value is exported.value
- the value itself.issueExportContext
- the context of the export operation.Optional
containing the exported value serialized as a String. This value will be passed to the
CustomFieldDataHandlertransformIssueValueForImport(CustomField, Issue, String, IssueImportContext)
method on import.Optional<String> transformChangeLogValueForExport(com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.issue.Issue issue, String value, String valueString, IssueExportContext issueExportContext)
customField
- the custom field for which the value is exported. The field is of type for which this handler has been registered.issue
- the issue for which the value is exported.value
- the value from the history entry.valueString
- the value string from the history entry.issueExportContext
- the context of the export operation.Optional
containing the exported value serialized as a String. This value will be passed to
CustomFieldType.getChangelogValue(CustomField, Object)
and
CustomFieldType.getChangelogString(CustomField, Object)
when the history entry is imported.Optional<T> transformIssueValueForImport(com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.issue.Issue issue, String value, IssueImportContext issueImportContext)
CustomFieldType
implementation in the app.customField
- the custom field for which the value is imported. The field is of type for which this handler has been registered.issue
- the issue for which the value is imported.value
- the value itself.issueImportContext
- the context of the import operation.Optional
containing the value for this custom field type.Copyright © 2022. All rights reserved.