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

Export from JIRA Cloud to JIRA Server fails due to JIRA Suite Utilities changes

    XMLWordPrintable

Details

    Description

      Summary

      Due to the removal of certain plugins within JIRA Cloud, such as the JIRA Suite Utilities, certain parts of the code have been moved into JIRA Cloud. However, some of the code changes have not made it into JIRA Server, so when migrating from Cloud to Server the workflows will be broken as they reference classes that do not exist.

      Steps to Reproduce

      1. Setup a workflow with JSU 'Value Field' condition.
      2. Export the instance to Server.
      3. Install JSU plugin.
      4. Try to use the workflow.

      Expected Results

      The workflow proceeds as normal.

      Actual Results

      The workflow fails to transition with the below error:

      [c.a.jira.workflow.DefaultOSWorkflowConfigurator] Could not load class 'com.atlassian.jira.workflow.condition.ValueFieldCondition'
      
      

      Workaround

      This can be worked around by renaming the new class names back to the old class names. For example renaming com.atlassian.jira.workflow.condition.ValueFieldCondition to com.googlecode.jsu.workflow.condition.ValueFieldCondition in the workflows will fix the problem.

      Notes

      Reviewing the XML backups before and after the change shows the problem is obvious - the class name has changed:

      After
      			<validator name="" type="class">
                    <arg name="contextHandling"></arg>
                    <arg name="hidFieldsList">customfield_13600</arg>
                    <arg name="errorMessage"></arg>
                    <arg name="class.name">com.atlassian.jira.workflow.condition.ValueFieldCondition</arg>
                  </validator>
                  <validator name="" type="class">
                    <arg name="contextHandling"></arg>
                    <arg name="hidFieldsList">customfield_12719</arg>
                    <arg name="errorMessage">.</arg>
                    <arg name="class.name">com.atlassian.jira.workflow.condition.ValueFieldCondition</arg>
                  </validator>
      
      
      Before
      			<validator name="" type="class">
      			
                    <arg name="fieldKey">customfield_13600</arg>
                    <arg name="errorMessage"></arg>
                    <arg name="class.name">com.googlecode.jsu.workflow.condition.ValueFieldCondition</arg>
                  </validator>
                  <validator name="" type="class">
      			
                    <arg name="fieldKey">customfield_12719</arg>
                    <arg name="errorMessage"></arg>
                    <arg name="class.name">com.googlecode.jsu.workflow.condition.ValueFieldCondition</arg>
                  </validator>
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rrosa@atlassian.com Rodrigo Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: