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

Updating the remaining estimate using REST API calls also updates the original estimate

XMLWordPrintable

      Summary

      Updating an issue remainingEstimate value using REST API calls also updates the originalEstimate to the same value. Setting originalEstimate updates remainingEstimate also

      Steps to Reproduce

      1. Add Time Tracking field to the Edit Issue screen for the project the issue you want to update belongs to
      2. Run the following REST API call to update the remainingEstimate value:
         curl -D- -u EMAIL:PASSWORD -X PUT --data "{\"fields\":{\"timetracking\":{\"remainingEstimate\":\"3d 1h\"}}}" -H "Content-Type: application/json" http://INSTANCE/rest/api/latest/issue/issuekey
        

      Expected Results

      Only the remainingEstimate value is updated

      Actual Results

      Both, originalEstimate and remainingEstimate are updated to the same value:

            "timetracking":{  
               "originalEstimate":"3d 1h",
               "remainingEstimate":"3d 1h",
              ....
            },
      

      Workaround

      Set both, originalEstimate and remainingEstimate. This way it works fine:

      • REQUEST BODY:
        {
        "fields": {
        	"timetracking": { 
        		"remainingEstimate": "55m",
        		"originalEstimate":"2h"
        		}
        	}
        } 
        
      • RESULT:
          [......]
              "timetracking":{  
                 "originalEstimate":"2h",
                 "remainingEstimate":"55m",
                 "originalEstimateSeconds":7200,
                 "remainingEstimateSeconds":3300
              }, 
          [......]
        

              ssu Simon Su
              dbonotto Dario B
              Votes:
              13 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: