How to update timeoriginalestimate using the REST API

I’m trying to update the “Original Estimate” of an Issue using the REST API.
I tried using https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put and got an 400 “Field ‘timeoriginalestimate’ cannot be set. It is not on the appropriate screen, or unknown.”
Checking with https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-editmeta-get the field indeed dose not appear.

Because I couldn’t add ‘timeoriginalestimate’ alone to the screen (it dose not appear as an option) I added timetracking. Editing the original estimate in the UI works fine, but the get edit metadata route returns

"timetracking": {
   "required": false,
      "schema": {
         "type": "timetracking",
         "system": "timetracking"
    },
    "name": "Time tracking",
    "key": "timetracking",
    "operations": [
       "set",
       "edit"
   ]
},

but nothing other time related.

What am I missing ?

Hello @JakobRenner

If the Issue type has time tracking enabled, you don’t need to put any fields on any screens, they’re all already where they need to be.

The field to update is not called originaltimeestimate, it is just called originalEstimate and it’s within the timetracking field group, along with the remainingEstimate field:

{
  "fields": {
    "timetracking": {
      "originalEstimate": "2h",
      "remainingEstimate": "3m"
    }
  }
}
1 Like