Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-38398

Workflow Designer throws NPE if imported workflow links to missing statuses

      1. Import workflow XML where some steps link to status ID-s that don't exist in this instance of JIRA
      2. Open that workflow in diagram mode
      3. BUG: workflow doesn't open, an "unexpected error" message is shown. The logs contain the stacktrace of a NullPointerException.

      The problem is that currently WFD code assumes that all steps have linked statuses and that such statuses exist. It is not necessarily the case for workflows imported as XML.

            [JRASERVER-38398] Workflow Designer throws NPE if imported workflow links to missing statuses

            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 509908 ]
            Murakami made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 509908 ]
            Murakami made changes -
            Link New: This issue is caused by JRASERVER-43561 [ JRASERVER-43561 ]
            Bugfix Automation Bot made changes -
            Minimum Version New: 6.02
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2838073 ] New: JAC Bug Workflow v3 [ 2915723 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2567243 ] New: JAC Bug Workflow v2 [ 2838073 ]
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1532744 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2567243 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels New: affects-server
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 687470 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1532744 ]
            Oswaldo Hernandez (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Soaking [ 10041 ] New: Resolved [ 5 ]

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              rtekhov Roman Tekhov (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: