Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Defining Original Estimation value via API

Ulf Borgwardt September 11, 2013

Hello,

I'm trying to fill our jira system via scripts using the SOAP or REST api. Unfortunately, I was not able to find a way how to define the field "Original Estimation". On my search, I found the following issue in your database:

https://bobswift.atlassian.net/browse/JCLI-98

Here I found the confirmation, that defining this field was not possible until that time (end of 2012).

My question:

Is this still a limitation in the latest jira version 6.0?

If my use-case is possible, can someone please send me a link with some documentation or an example code snippet?

Thanks in advance

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Aleksander Mierzwicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2013

The REST API documentation: https://docs.atlassian.com/jira/REST/latest/#idp1847152
says that you should fill timetracking field like that:

"timetracking": {
  "originalEstimate": "10",
  "remainingEstimate": "5"
},

This should work when creating and upating issue.

Cheers,
Alek.

Sonu Gupta April 24, 2014

What is 10 and 5 ? Days, months, hours, weeks, minutes ?

Like Urs Kalt likes this
Martin Mais March 9, 2015

Works for me, thanks!

Duane Mattos November 16, 2018

@Sonu Gupta default is minutes when units aren't specified. To be explicit follow this example:

"timetracking": {
   "originalEstimate": "1d 2h",
   "remainingEstimate": "3h 25m"
}

from:

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

0 votes
devth January 14, 2014

I don't see that mentioned anywhere in the docs. Also, I just tried using your example and it didn't seem to work.

devth January 14, 2014

Actually, it did work! You should add it to the docs, no?

TAGS
AUG Leaders

Atlassian Community Events