Project Import Failure Due to Custom Field Error in Project Configurator for Jira

Project Import Failure Due to Custom Field Error in Project Configurator for Jira

When attempting to import a project using Project Configurator for Jira on Jira Software, users may encounter the following error:

"The custom field 'Requester' in the backup project is used by issue types 'Requirement' but the field with the same name in the current JIRA instance is not available to those issue types in this project."

Even though the custom field context appears the same in both the source and target environments, the import fails​.

Root Cause Analysis

This issue typically occurs due to:

  1. Custom Field Context Mismatch

    • The custom field Requester may have different contexts assigned in the target Jira instance.

    • The field may be restricted to certain issue types in the target environment.

  2. Field Configuration Scheme Issues

    • Even if the field appears in Custom Fields, it may not be assigned to the correct Field Configuration Scheme.

  3. Field Scope Differences

    • In the source Jira, the field may be available for all projects, but in the target Jira, it might be restricted to specific projects.

  4. Field ID Mismatch

    • Field name ≠ Same field ID.

    • If the field was manually recreated in the target instance, it may have a different field ID, causing the import to fail.

Step-by-Step Troubleshooting & Fixes

1️⃣ Verify Custom Field Context in Source and Target Jira

  • Check field context in Source Jira:

    1. Go to Jira Administration → Issues → Custom Fields.

    2. Locate the Requester field and click on "Configure".

    3. Click Edit Configuration Scheme and note the field context.

  • Check field context in Target Jira:

    1. Repeat the steps above in the target Jira instance.

    2. If the field is restricted to specific issue types, modify the context to include "Requirement".

2️⃣ Ensure the Custom Field is Mapped to the Correct Issue Types

If the Requester field is not available for the "Requirement" issue type:

  1. Go to Jira Admin → Issues → Custom Fields.

  2. Find the Requester field and click "Screens".

  3. Ensure the field is associated with all relevant issue types.

  4. Save the changes and retry the project import.

3️⃣ Compare Field IDs Between Source & Target Jira

Since name ≠ same ID, run the following SQL query in both Jira instances to verify field IDs:

SELECT id, customfieldtypekey, cfname FROM customfield WHERE cfname = 'Requester';

If the field IDs are different, manually map the correct ID before import.

4️⃣ Use Project Configurator’s Field Mapping Feature

Before importing:

  1. Go to Project Configurator → Import → Field Mapping.

  2. Manually map the 'Requester' field to the correct field ID.

  3. Proceed with import after mapping verification.

5️⃣ Validate the Issue Type Screen Scheme

If the field is missing from certain screens:

  1. Go to Jira Admin → Issues → Screens.

  2. Find the screen scheme used by "Requirement" issue type.

  3. Ensure the "Requester" field is added to the correct screens.

Final Solution Summary

Step

Action

Step

Action

1️⃣ Verify Custom Field Context

Ensure Requester field is available for the correct issue types.

2️⃣ Check Field Configurations

Update Field Configuration Scheme if needed.

3️⃣ Compare Field IDs

Run SQL query to verify if field IDs match between source and target.

4️⃣ Use Field Mapping in Project Configurator

Manually map the correct field before importing.

5️⃣ Validate Issue Type Screens

Ensure the Requester field appears on the correct screens.

Expected Outcome

  • The project import will be completed successfully.

  • The Requester field will be correctly assigned to all required issue types.

  • Future imports will proceed without errors.