-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1
-
Minor
-
Issue Summary
Jira Service Management Assets imports allow users to create references to other objects when configuring import mappings. AQL by default should be case-insensitive as noted in the AQL documentation, however it was found that when multiple values are being set from the data source during the import, the search becomes case-sensitive and fails to create the references when there is a case mismatch.
Steps to Reproduce
In this example I will use two Schemas to demonstrate the behavior.
Setup schema one
- Create a new schema called Service Station
- Click on the schema configuration and ensure the option Allow others to select objects from this schema is checked
- Create an object type and call it Location
- Create the following object type attributes:
- Name: City Type: Default Type Value: Text
- Name: State Type: Default Type Value: Text
- Name: Location ID Type: Default Type Value: Text
- Create two objects with the following values:
- Object one (example key STATION-123:
- City: Austin
- State: TX
- Location ID: austintx
- Object two (example key STATION-124:
- City: Denver
- State: CO
- Location ID: denverco
- Object one (example key STATION-123:
Setup schema two
- Create a new schema called Vehicle
- Create a new object type and call it Car
- Create the following object type attributes:
- Name: Color Type: Default Type Value: Text
- Name: Service Location Type: Object Type Value: Location (This will be the object type created in the previous steps on the other schema)
- Create one object with the following values:
- Name: BMW
- Color: Red
- Service Location can be left empty
Create import file
Configure the following CSV file called importsource.csv:
Name,Color,ServiceLocation BMW, Blue,Denverco||austintx
Note: The D in Denver is upper case, which is a mismatch from the value set on the referenced object.
Setup import
- Click Schema configuration on the Vehicle schema
- Navigate to the Import tab
- Click Create import
- Select CSV
- Set any name for the import and select importsource.csv as the file, toggle the Automatically create object types and attributes mapping to off
- Create the import
- Expand the Edit mapping and click Create mapping
- Select the Car object type and leave settings as default
- Create the mapping for the data source fields to their destination attribute:
- Name (Identifier) => Name
- Color => Color
- ServiceLocation => Service Location
- On the Service Location mapping, set the following in the AQL section:
"Location ID" LIKE (${ServiceLocation${0}})
Once configured, enable the import and run it.
Expected Results
Both SERVICE-123 and SERVICE-124 are linked to the object as referenced.
Actual Results
Only STATION-123 is linked because there is a mismatch between the source and object attribute case.
Workaround
When importing multiple values that will reference existing data in Assets, ensure that the case sensitivity matches between the source data and the destination data.
- relates to
-
JSDSERVER-15128 CSV Import Object Mapping follow Case Sensitive
-
- Closed
-
- mentioned in
-
Page Loading...