This page describes how to migrate a Connect Jira Issue Field module to Forge's custom field module.
Before you begin, make sure you review the basics of migrating Jira modules from Connect to Forge.
This migration involves two processes:
In the Forge manifest, delete each jiraIssueFields module from the connectModules section and rewrite each one
as a new jira:customField entry in the modules section.
In each replacement jira:customField entry:
key value as the original jiraIssueFields module module.migratedFromConnect field to trueRefer to the following references for additional syntax conversion details of different fields.
1 2connectModules: jira:jiraIssueFields: - key: connect-read-only-string name: value: connect-read-only-string-field description: value: connect-read-only-string-field type: string
1 2modules: jira:customField: - key: connect-read-only-string name: connect-read-only-string-field description: connect-read-only-string-field type: string migratedFromConnect: true
For read-only Connect issue fields, the replacement Forge module must:
type in Forge manifest to the value in property.type in connect.collection: list. See collection types for more details.connectFieldProperty refers to the entityProperty details used by the connect issue field.1 2connectModules: jira:jiraIssueFields: - key: connect-read-only-date name: value: connect-read-only-date-field description: value: connect-read-only-date-field type: read_only property: path: date key: statistics type: date
1 2app: id: ari:cloud:ecosystem::app/<<app_id>> connect: key: connect-fields-migration-test-app remote: connect authentication: jwt modules: jira:customField: - key: connect-read-only-date name: connect-read-only-date-field description: connect-read-only-date-field type: date migratedFromConnect: true readOnly: true connectFieldProperty: key: statistics path: date
When a new Forge app version replaces Connect jiraIssueFields entries with Forge customField, installing the app triggers a Jira background task. This task:
customfield_10054 referred to the Connect issueField schema, then customfield_10054 will refer to Forge's customField schema after switching.Migration may take a few minutes. Internal tests show migrating a Connect read-only number field used in 110K issues took about 40 seconds.
Your Forge app can use the following API endoint to track the migration status of a specific customField:
1 2GET /rest/atlassian-connect/1/migration/{connectKey}/{jiraIssueFieldsKey}/task
The value of connectKey is the Connect app key, and jiraIssueFieldsKey is the key of the Jira Issue Field module.
For example, to track the sample Read-only field entry, use:
1 2GET /rest/atlassian-connect/1/migration/connect-fields-migration-test-app/connect-read-only-date/task
For more information, see the Task progress API documentation.
Once a module is migrated to Forge, it cannot be migrated back to Connect.
You are now ready to verify the migration on the Jira instance that your team uses for testing.
jira:jiraIssueFields module with Forge jira:customField module. Install the updated app on the Jira instance.Rate this page: