Uploaded image for project: 'Advanced Roadmaps'
  1. Advanced Roadmaps
  2. JPOSERVER-2358

Bug: Target Start and Target End fields store incorrect values in CEST within jira create rest calls

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      Environment

      OS Ubuntu Server 16.04, Jira Software 7.1.10 , jdk 1.8.0_171-b11, Portfolio 2.13.1
      OS Windows 10, Jira Software 7.10.1, jdk 1.8.0_172, Portfolio 2.13.3

      Steps to Reproduce

      • Start Jira and add the Due date, Target Start (e.g. customfield_10109), Target End (e.g. customfield_1011) fields to the create issue screen (e.g. for Epics)
      • Shutdown Jira
      • Set the timezone of the OS to UTC
      • Start Jira
      • Create an Epic using the rest interface of jira http://SERVER/rest/api/2/issue (POST)
        {
           "fields":{
              "project":{
                 "key":"TP"
              },
              "issuetype":{
                 "name":"Epic"
              },
              "summary":"Some Epic",
              "duedate":"2018-03-03",
              "customfield_10104":"Some Epic",
              "customfield_10109":"2018-02-02",
              "customfield_10110":"2018-03-03"
           }
        }
        
      • Issue will have the following values:
        • Target start 2018-02-02
        • Target end 2018-03-03
        • Due date 2018-03-03
      • Shutdown Jira
      • Set the timezone of the OS to CEST
      • Start Jira
      • Create an Epic using the rest interface of jira http://SERVER/rest/api/2/issue (POST)
        {
           "fields":{
              "project":{
                 "key":"TP"
              },
              "issuetype":{
                 "name":"Epic"
              },
              "summary":"Some Epic",
              "duedate":"2018-03-03",
              "customfield_10104":"Some Epic",
              "customfield_10109":"2018-02-02",
              "customfield_10110":"2018-03-03"
           }
        }
        
      • Issue will have the following values:
        • Target start 2018-02-01
        • Target end 2018-03-02
        • Due date 2018-03-03

      Expected Results

      The time zone of the operating system should not cause any problems.

      Actual Results

      One day is deducted from the Target start / Target end fields.

      Note

      Note that this bug will impact rules configured with the add-on Automation for Jira, if these rules are automatically setting the Target Start and End fields from Advanced Roadmap. For more information, please refer to this KB article

      Attachments

        Issue Links

          Activity

            People

              08904538c6b6 Dong
              4b1e4721af2d Andreas Spall (evolu.software)
              Archiver:
              atibrewal@atlassian.com Aakrity Tibrewal

              Dates

                Created:
                Updated:
                Resolved:
                Archived: