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

Workflow Designer doesn't work after migrating from Cloud

    XMLWordPrintable

Details

    Description

      Steps to Replicate

      1. In JIRA Cloud (6.4.x), create a custom workflow in Diagram mode
      2. Back up JIRA Cloud and import into JIRA Server
      3. View the custom workflow created above in Diagram mode (in JIRA Server)

      Expected Behavior

      The workflow should be displayed properly without any error

      Actual Behavior

      The workflow is not displayed and the following error: "An error occurred while loading the workflow. See your system log for more information." is shown:

      This same error is observed in a couple of places:

      • Project Administration -> Issue Types -> <any_issue_type>
      • Project Administration -> Workflows -> <view_diagram_mode>
      • JIRA Administration -> Issues -> Workflows -> <view_diagram_mode>
      • View Issue screen -> View Workflow

      This is thrown in the logs:

      2014-12-18 20:00:55,933 http-bio-56312-exec-13 ERROR sysadmin 1200x656x1 udyc5v 0:0:0:0:0:0:0:1 /rest/workflowDesigner/latest/workflows [plugins.workflowdesigner.layout.WorkflowLayoutsImpl] Error serializing workflow layout for workflow E6 Full Workflow, draft = false
      com.atlassian.jira.plugins.workflowdesigner.layout.LayoutSerializationException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "loopedTransitionContainer" (Class com.atlassian.jira.plugins.workflowdesigner.layout.Layout), not marked as ignorable
       at [Source: java.io.StringReader@636a0128; line: 1, column: 4460] (through reference chain: com.atlassian.jira.plugins.workflowdesigner.layout.Layout["loopedTransitionContainer"])
      	at com.atlassian.jira.plugins.workflowdesigner.utilities.JsonSerializer.deserialize(JsonSerializer.java:37)
      	at com.atlassian.jira.plugins.workflowdesigner.layout.LayoutSerializerImpl.deserializeFromJson(LayoutSerializerImpl.java:30)
      	at com.sysbliss.jira.plugins.workflow.manager.WorkflowLayoutManagerImpl.getLayout(WorkflowLayoutManagerImpl.java:108)
      	at com.sysbliss.jira.plugins.workflow.manager.WorkflowLayoutManagerImpl.getExistingLayoutOrCreate(WorkflowLayoutManagerImpl.java:72)
      	at com.atlassian.jira.plugins.workflowdesigner.layout.WorkflowLayoutsImpl.getLayout(WorkflowLayoutsImpl.java:101)
      	at com.atlassian.jira.plugins.workflowdesigner.rest.WorkflowsResource.getWorkflow(WorkflowsResource.java:69)  <+3> (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43)
      ...
      Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "loopedTransitionContainer" (Class com.atlassian.jira.plugins.workflowdesigner.layout.Layout), not marked as ignorable
       at [Source: java.io.StringReader@636a0128; line: 1, column: 4460] (through reference chain: com.atlassian.jira.plugins.workflowdesigner.layout.Layout["loopedTransitionContainer"])
      	at org.codehaus.jackson.map.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:53)
      	at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownFieldException(StdDeserializationContext.java:267)
      	at org.codehaus.jackson.map.deser.std.StdDeserializer.reportUnknownProperty(StdDeserializer.java:649)
      	at org.codehaus.jackson.map.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:635)
      	at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:717)
      	at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
      	at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2723)
      	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854)
      	at com.atlassian.jira.plugins.workflowdesigner.utilities.JsonSerializer.deserialize(JsonSerializer.java:33)
      	... 198 more
      

      Workaround:

      1. Download workflow-designer-plugin-6.4-D20141201T055222.jar (this is the version bundled in JIRA Server 6.4-m12)
      2. Navigate to Administration » Add-ons » Manage Add-ons
      3. Click 'Upload Add-on'
      4. Select the downloaded file and upload it
        After that the workflow should be displayed correctly.

      Apart from this, administrators can still view and edit the affected workflow in Text mode from JIRA Administration -> Issues -> Workflows

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vdung Andy Nguyen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: