Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-72365

Date time picker fails on sub-task creation in the new Jira issue view

    XMLWordPrintable

Details

    Description

      Issue Summary

      Users are unable to use the date time picker field in the sub-task creation via the new Jira issue view.

      Environment

      Steps to Reproduce

      1. Create a date time picker custom field and enable it for a project.
      2. Change the field configuration for that custom field to be required.
      3. Open a standard issue with the new Jira issue view.
      4. Create a sub-task. Since there is required field, the create form will pop-up
      5. Try to click on the calendar icon for the data time picker custom field.

      Expected Results

      The picker should work.

      Actual Results

      The custom field does not work and a browser console error is returned.

      batch.js?adg3Enabled=true&devsummary=true&globalSidebarEnabled=true&jag=true&locale=en-US:5057 Uncaught TypeError: Cannot read property 'DEF_DATE_FORMAT' of undefined
          at new Calendar (batch.js?adg3Enabled=true&devsummary=true&globalSidebarEnabled=true&jag=true&locale=en-US:5057)
          at n (batch.js?adg3Enabled=true&devsummary=true&globalSidebarEnabled=true&jag=true&locale=en-US:5060)
          at HTMLAnchorElement.<anonymous> (batch.js?adg3Enabled=true&devsummary=true&globalSidebarEnabled=true&jag=true&locale=en-US:5060)
          at HTMLAnchorElement.dispatch (batch.js?adg3Enabled=true&devsummary=true&globalSidebarEnabled=true&jag=true&locale=en-US:82)
          at HTMLAnchorElement.h (batch.js?adg3Enabled=true&devsummary=true&globalSidebarEnabled=true&jag=true&locale=en-US:74)
      

      Notes

      The field itself does not need to be required.

      Having any other field required (even with the field required validator) will do. The date picker calendar will not work in the sub-task create screen in any scenario.

      The Date Picker field type is also affected.

      The same behavior can be observed when creating Tasks under Epics

      Workaround

      option 1 : Switch to the old view on the parent issue and create the sub-task from there.
      option 2 : Force the calendar to load

      • Click on the create icon from the sidebar. Click on the calendar for any date time picker field and cancel.
      • Try to create the sub-task again and the date time picker should start working.

      option 3: Directly enter the date time picker value following the site time zone format. For example the format, dd/MMM/yy h:mm will be entered as 22/Jan/20 05:10 PM

      Attachments

        1. new view.png
          new view.png
          849 kB
        2. old view.png
          old view.png
          309 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rmacalinao Ramon M
              Votes:
              20 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: