Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-161

Automation fails when it has two fields with the same name/type, showing the error "Found multiple fields with the same name and type:"

    XMLWordPrintable

Details

    • Severity 3 - Minor
    • 10

    Description

      Issue Summary

      Automation fails when has two fields with the same name/type, showing the error "Found multiple fields with the same name and type:"

      In case rule has custom filed of type cascading and another custom field with same name exist then rule fails with below error: 
      "Additional fields contains invalid field(s) in 'update' or 'fields' section.
      <field_name>"

      Steps to Reproduce

      1. Create a new number custom field in a Next-Gen project
      2. Create a rule to copy the value from this field. Below, follows an example.
      3. Set the rule scope for the Next-Gen project.
      4. Under <instance>.atlassian.net/secure/admin/ViewCustomFields.jspa create a new number custom field with the same name.
      5. Associated the "number" custom field to a classic project.
      • Reload the rule, and then run the rule.
      • Then will appear the error "Found multiple fields with the same name and type:"

      Expected Results

      When we set the scope of the rule to a Next-Gen project, it should not consider a classic custom field. 

      Actual Results

      Even the rule restricts to the Next-Gen project, appear the error "Found multiple fields with the same name and type:". The rule is considering a field with the same name and type, causing this error. 

      Workaround

      We can change the field name to a different one, and then the rule will run without error.
       

      Attachments

        1. image-2020-12-10-09-36-14-114.png
          image-2020-12-10-09-36-14-114.png
          64 kB
        2. image-2020-12-10-09-36-27-134.png
          image-2020-12-10-09-36-27-134.png
          64 kB
        3. image-2020-12-10-09-36-39-080.png
          image-2020-12-10-09-36-39-080.png
          11 kB
        4. image-2020-12-10-09-36-57-304.png
          image-2020-12-10-09-36-57-304.png
          7 kB
        5. screenshot-1.png
          screenshot-1.png
          161 kB

        Issue Links

          Activity

            People

              89403358cf11 Charlie Gavey
              cfontana@atlassian.com Cristiano
              Votes:
              86 Vote for this issue
              Watchers:
              98 Start watching this issue

              Dates

                Created:
                Updated: