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

Epoch format date values imported from a database into asset object attributes are incorrect

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 10.3.7, 10.3.8, 10.7.2
    • Assets - Import

      Issue Summary

      If a user attempts to import a datetime data store in Unix epoch format into a date or datetime type attribute in Jira Asset, the year in the attribute value of the imported object is incorrect. This issue occurs only when the date and datetime formats specified under the "Look and Feel" system configuration are set to "dd/MMM/yyyy" and "dd/MMM/yyyy h:mm a," respectively.

      Steps to Reproduce:

      1. Update the date and datetime formats in the "Look and Feel" system configuration. Set the formats to "dd/MMM/yyyy" for the date and "dd/MMM/yyyy h:mm a" for the datetime.
      2. Create a temporary database table to import data from. This table should include a bigint type column to store timestamps in Unix epoch format (e.g., 638292024000000000).
      3. Create an object type that contains at least one datetime type attribute.
      4. Set up a database import process and map the newly created temporary table to the object type created in the previous step.
      5. In the object type mapping configuration for the import, map the database column containing the Unix time to the datetime type attribute of the object type.
      6. Run the import and verify the value of the datetime type attribute in the imported object.

      Expected Results

      The datetime attribute should have correct datetime
      eg: 01/Sep/2023 10:00 pm

      Actual Results

      The datetime attribute has incorrect year
      eg: 01/Sep/3623 10:00 pm

      Workaround

      Update the date and datetime format under ⚙️ > System > "Look and Feel" configuration to "dd/MMM/yy" and "dd/MMM/yy h:mm a".

      Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below: 

      Testing Requirements Version Affected Version
      Customers Reported Version 10.3.7 Yes
      Most Recent Bug-Fix Release 10.7.2 Yes
      Previous Major Release    
      Most Recent LTS 10.3.8 Yes
      Previous Supported LTS    
      Other Versions.. 10.3.6 No
      (Add rows as needed)    

            [JSDSERVER-16315] Epoch format date values imported from a database into asset object attributes are incorrect

            Marc Dacanay made changes -
            Assignee New: Marc Dacanay [ fd3b5c1acd09 ]
            SET Analytics Bot made changes -
            UIS Original: 1 New: 6
            SET Analytics Bot made changes -
            Support reference count Original: 1 New: 2
            SET Analytics Bot made changes -
            UIS New: 1
            Security Metrics Bot made changes -
            Labels New: ril
            Security Metrics Bot made changes -
            Labels Original: ril
            Bartosz Ornatowski 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)" [ 1040281 ]

              fd3b5c1acd09 Marc Dacanay
              c008f96ae210 Shiv Kumar
              Affected customers:
              9 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated: