Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-210

Exported Automation rules from Cloud fails to be imported to Server/DC

XMLWordPrintable

    • Severity 3 - Minor
    • 1

      Issue Summary

      Some of the Exported Automation rules from Cloud fails to be imported to Server/DC

      Steps to Reproduce

      1. Export multiple rules from Cloud
      2. Attempt to import them in Automation for Jira Server/DC.

      Expected Results

      The rules are imported without issues.

      Actual Results

      The import succeeds and the following error is displayed:

      "Some of the rules were not parsed successfully and can not be imported"

      The format of the export from Cloud rules export is as below but the server does not support type=NAME 

      "field":{ "type": "NAME", "value": "Access Group in APC" },
      

      This causes the import process to ignore some rules and proceed with the valid ones.
       .

      The following errors might be found in the Jira logs, after enabling the debugging package com.codebarrel:

      • Error 1:
        com.codebarrel.api.JsonSupport$JsonDeserializationException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "field" (class com.codebarrel.automation.rulecomponent.jira.common.FieldOperation), not marked as ignorable (4 known properties: "value", "type", "fieldType", "fieldId"])
         at [Source: (ByteArrayInputStream); line: 1, column: 26] (through reference chain: com.codebarrel.automation.rulecomponent.jira.common.IssueActionConfig["operations"]->java.util.ArrayList[0]->com.codebarrel.automation.rulecomponent.jira.common.FieldOperation["field"])
        	at com.codebarrel.api.JsonSupport.toObject(JsonSupport.java:107)
        
      • Error 2:
        com.codebarrel.api.JsonSupport$JsonDeserializationException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `com.codebarrel.automation.rulecomponent.jira.trigger.fieldchanged.config.FieldChangedConfig$Type` from String "fieldName": value not one of declared Enum instance names: [field, match]
         at [Source: (ByteArrayInputStream); line: 1, column: 41] (through reference chain: com.codebarrel.automation.rulecomponent.jira.trigger.fieldchanged.config.MultiFieldChangedTriggerConfig["fields"]->java.util.ArrayList[0]->com.codebarrel.automation.rulecomponent.jira.trigger.fieldchanged.config.FieldChangedConfig["type"])
        	at com.codebarrel.api.JsonSupport.toObject(JsonSupport.java:107)
        

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              eb199b0f42df aghosh
              Votes:
              18 Vote for this issue
              Watchers:
              19 Start watching this issue

                Created:
                Updated: