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

Assets postfunction "Create an Assets Object from a Jira Issue" cannot handle non-standard datetime format if the day (dd) value is less than or equal to 12

      Issue Summary

      On JSM 10.x, Assets postfunction "Create an Assets Object from a Jira Issue" cannot handle "dd.MM.yyyy HH:mm" datetime format if the date (dd) value is less than or equal to 12.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      Due to the nature of the bug, this seems to be happening for any date/dateTime format with digit month value "MM" instead of the abbr. alphabetical month "MMM".

      1. Set up Look and feel:

      Time Format HH:mm
      Day Format EEEE HH:mm
      Complete Date/Time Format dd.MM.yyyy HH:mm
      Day/Month/Year Format dd.MM.yyyy

      2. Set the following date/datetime picker format in System > General Configuration > Advanced Settings:

      Key Value
      jira.date.picker.java.format dd.MM.yyyy
      jira.date.picker.javascript.format %d.%m.%Y
      jira.date.time.picker.java.format dd.MM.yyyy HH:mm
      jira.date.time.picker.javascript.format %d.%m.%Y %H:%M

      3. Create one/two Date Time Picker custom fields and apply to applicable screens:

      4. Add DateTime attribute in any object type:

      5. Add an Assets workflow post-function “Create an Assets Object from a Jira Issue“ and map the date time picker Custom Fields with the datetime attribute of the object type:

      6. Transition a Jira issue to trigger the post-function after populating the date time picker CFs with a day value less than 12:

      7. Transition another Jira issue to trigger the post-function after populating the date time picker CFs with a day value more than 12

      Expected Results

      The created Assets object from the post-function is able to handle both dates correctly

      Actual Results

      Day value less than 12 Day value more than 12

      The same is reflected in the database as well:

      Workaround

      Use the default datetime picker

          Form Name

            [JSDSERVER-16025] Assets postfunction "Create an Assets Object from a Jira Issue" cannot handle non-standard datetime format if the day (dd) value is less than or equal to 12

            Satej Mirpagar made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS New: 12
            SET Analytics Bot made changes -
            Support reference count Original: 1 New: 2
            Benjamin Suess made changes -
            Fix Version/s New: 10.5.0 [ 110315 ]
            Fix Version/s New: 10.3.4 [ 110310 ]
            Benjamin Suess made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Benjamin Suess made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Benjamin Suess made changes -
            Assignee New: Benjamin Suess [ c8bcca445054 ]
            Benjamin Suess made changes -
            Affects Version/s New: 10.0.0 [ 107096 ]
            Affects Version/s New: 5.17.0 [ 107827 ]
            Affects Version/s New: 10.2.0 [ 109023 ]
            Affects Version/s New: 10.1.1 [ 108913 ]
            Bartosz Ornatowski made changes -
            Status Original: Needs Triage [ 10030 ] New: Short Term Backlog [ 12074 ]
            SET Analytics Bot made changes -
            Support reference count New: 1

              c8bcca445054 Benjamin Suess
              smitra2@atlassian.com Suddha
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: