Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-48507

Adjusting the start time for a JIRA Event Range using a Date field increases the range

    XMLWordPrintable

Details

    Description

      If you adjust the Start time in a range that uses a date field without time, the range increases incorrectly.

      Steps to Reproduce
      1. Create a custom field type called "PlannedStart"
      2. Create a new issue that uses this custom field, and:
        1. Set the "Due Date" to "15/01/2015" (15th Jan 2015)
        2. Set the "PlannedStart" to "13/01/2015" (13th Jan 2015)
      3. Display a date range for this issue in Team Calendar
      4. Edit the range, and set the start time to the previous day (12th Jan 2015)
      Expected Results

      The range should be from the 12th of Jan 2015 to the 15th of Jan 2015. Only fields in the JIRA ticket that are changed should be updated (in this case, the field used at the start of the range should change to the 12th).

      Actual results

      Both the start date and the end date of the ranges are adjusted. In the case of the start date, it will correctly update to the 12th of January 2015 (both in the calendar and the ticket).

      The date used for the end of the range (in this case "Due Date" is updated to have an incorrect value, despite the value not changing and being uneditable in the Team Calendar UI. It remains unchanged in the JIRA ticket.

      This is somewhat confusing, so here's the process in screen shots:

      First, here's the issue and it's dates:

      Next, we'll create a range for this issue:

      Then, edit the start date of the range. Note that the end date is not editable, and does not change from the 15th of January:

      The event changes it's start date, but the date is pushed to the 16th, and displaying as the 17th:

      Editing the issue by even an hour will cause the range to increase in time again:


      When the end of the range increases beyond what was originally set, it will be updated on the JIRA ticket. In this case, when the range stretched to the 17th, the date was updated on the ticket as the 16th:

      Attachments

        1. EditDate1.png
          EditDate1.png
          43 kB
        2. EditDate2.png
          EditDate2.png
          45 kB
        3. IncorrectRange1.png
          IncorrectRange1.png
          9 kB
        4. IncorrectRange2.png
          IncorrectRange2.png
          33 kB
        5. IncorrectRange3.png
          IncorrectRange3.png
          35 kB
        6. StartDates.png
          StartDates.png
          13 kB
        7. UpdatedDates.png
          UpdatedDates.png
          13 kB

        Issue Links

          Activity

            People

              8c8bb50f2129 Ellen Oates
              dnorton@atlassian.com Dave Norton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: