Copying a plan that contains a deleted project results in communication error

XMLWordPrintable

    • 1
    • Minor
    • 1

      Issue Summary

      When users try copying a migration plan, but that plan includes a project that has been deleted and no longer exists, they will see an 'Error communicating with server' message in the UI.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Create and save a migration plan which contains multiple projects
      2. Delete a project that was included in the migration plan
      3. Try to create a copy of the migration plan

      Expected Results

      Migration plan is copied but JCMA warns about the missing deleted project

      Actual Results

      The following error message is seen in the UI:

      Error communicating with server

      Retry again in a few minutes. Contact support if you continue to receive this error.

      The network response in browser tools show:

      Failed to save the plan: Plan includes invalid project keys [<KEY>]

      Jira logs show:

      2024-12-25 15:13:15,363+0000 http-nio-8080-exec-11 url: /jira/rest/migration/latest/plan/d1cf06ef-ec4c-454f-abc7-a72857a30a80/start; user: hbui ERROR <username> 913x1609x2 nifa70 172.29.254.148,172.50.0.2 /rest/migration/latest/plan/d1cf06ef-ec4c-454f-abc7-a72857a30a80/start [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception 3d24f10a-4168-4615-9f1d-7dbf7855ce32 thrown by REST service: getProjectByCurrentKey(...) must not be null
      java.lang.NullPointerException: getProjectByCurrentKey(...) must not be null
      	at com.atlassian.jira.migration.serverdataextractors.ProjectsReader.getProject(ProjectsReader.kt:31)
      

      Workaround

      Recreate missing project with the same project key

        1. Screenshot 2025-02-03 at 4.22.52 PM.png
          464 kB
          Mike Yanin
        2. Screenshot 2025-02-03 at 4.23.01 PM.png
          128 kB
          Mike Yanin
        3. Screenshot 2025-02-03 at 4.23.06 PM.png
          143 kB
          Mike Yanin
        4. Screenshot 2025-02-03 at 4.23.12 PM.png
          176 kB
          Mike Yanin

            Assignee:
            Sundeep Babbur
            Reporter:
            Houston B.
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: