Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-16054

Import duplication when object type mapping has two identifiers and one is another referenced object

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 10.2.0, 5.12.15, 5.17.5, 10.1.2
    • Assets - Import

      Issue Summary

      This is reproducible on Data Center: (yes)

      During object import, objects are duplicated when object type mapping has two identifiers and one is another referenced object

      Steps to Reproduce

      1. Create object type called "City" in your schema (with just default attributes). City object Type should not have any objects.
      2. Also create an object type called "Employee" with the default attributes and an attribute of "City" of the City object type created in step 1
      3. Create an import configuration in your schema with the attached CSV file
      4. After the configuration is created, create an object type mapping within the configuration selecting the Employee object type created in step 2 and set the identifiers of the mapping to be "Name" and "City" and ensure both are ticked (See screenshot for end result of import configuration)
        1. Ensure that for the Employee object type mapping, Missing objects are ignored
      5. Execute import and check that the objects were correctly imported
      6. Execute import another time without making any changes

      Expected Results

      There should not be any duplicates.

      Actual Results

      It creates duplicate.

      Workaround

      Required, if there is no workaround please state:
      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [JSDSERVER-16054] Import duplication when object type mapping has two identifiers and one is another referenced object

            Benjamin Suess made changes -
            Status Original: Needs Triage [ 10030 ] New: Short Term Backlog [ 12074 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Security Metrics Bot made changes -
            Labels New: ril
            Security Metrics Bot made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 990744 ]
            Shiwani Choudhary made changes -
            Description Original: h3. Issue Summary

            This is reproducible on Data Center: (yes)

            During object import, objects are duplicated when object type mapping has two identifiers and one is another referenced object
            h3. Steps to Reproduce
             # Create object type called "City" in your schema (with just default attributes) 
             # Also create an object type called "Employee" with the default attributes and an attribute of "City" of the City object type created in step 1
             # Create an import configuration in your schema with the attached CSV file
             # After the configuration is created, create an object type mapping within the configuration selecting the Employee object type created in step 2 and set the identifiers of the mapping to be "Name" and "City" and ensure both are ticked (See screenshot for end result of import configuration)
             ## Ensure that for the Employee object type mapping, Missing objects are ignored
             # Execute import and check that the objects were correctly imported
             # Execute import another time without making any changes

            h3. Expected Results

            There should not be any duplicates.
            h3. Actual Results

            It creates duplicate.

            !Screenshot 2025-02-21 at 4.33.17 PM.png|width=391,height=474!
            h3. Workaround

            Required, if there is no workaround please state:
            Currently there is no known workaround for this behavior. A workaround will be added here when available
            New: h3. Issue Summary

            This is reproducible on Data Center: (yes)

            During object import, objects are duplicated when object type mapping has two identifiers and one is another referenced object
            h3. Steps to Reproduce
             # Create object type called "City" in your schema (with just default attributes). City object Type should not have any objects.
             # Also create an object type called "Employee" with the default attributes and an attribute of "City" of the City object type created in step 1
             # Create an import configuration in your schema with the attached CSV file
             # After the configuration is created, create an object type mapping within the configuration selecting the Employee object type created in step 2 and set the identifiers of the mapping to be "Name" and "City" and ensure both are ticked (See screenshot for end result of import configuration)
             ## Ensure that for the Employee object type mapping, Missing objects are ignored
             # Execute import and check that the objects were correctly imported
             # Execute import another time without making any changes

            h3. Expected Results

            There should not be any duplicates.
            h3. Actual Results

            It creates duplicate.

            !Screenshot 2025-02-21 at 4.33.17 PM.png|width=391,height=474!
            h3. Workaround

            Required, if there is no workaround please state:
            Currently there is no known workaround for this behavior. A workaround will be added here when available
            Shiwani Choudhary made changes -
            Link New: This issue is related to JSDCLOUD-10045 [ JSDCLOUD-10045 ]
            Shiwani Choudhary created issue -

              Unassigned Unassigned
              6f6f0ed1241f Shiwani Choudhary
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated: