Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update original estimate field via the API?

Chris Spencer
Contributor
December 18, 2018

How do you update the "Original Estimate" field, which is called "timeoriginalestimate" in the API?

 

I'm using the Python Jira API wrapper like:

 

    from jira import JIRA
    jira = JIRA(options=options, basic_auth=(username, password))
    issue = jira.issue(ticket_name)
    issue.update(fields={'timeoriginalestimate': 12345}) 

 

but this throws the error:

 

{"errorMessages":[],"errors":{"timeoriginalestimate":"Field 'timeoriginalestimate' cannot be set. It is not on the appropriate screen, or unknown."}}

2 answers

1 accepted

3 votes
Answer accepted
Chris Spencer
Contributor
December 18, 2018

Digging around in other questions, I found my API syntax was wrong.

 

The correct call for update():

 

    issue.update(fields={"timetracking":{"originalEstimate":"%ih" % hours}})

Gelbana
Contributor
March 25, 2022

This is clarified in the docs here but only by chance! I mean, what about other fields? How can I figure out the correct structure for a request that should edit other fields?

Alibek Zhubanyshev
Contributor
September 19, 2024

What payload did you use?

0 votes
Shawn Masters
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 18, 2018

1. Make sure you have both Browse Projects and Work on Issues permissions for the project the issue resides in.

2. IF configured, make sure you got the right security level for Issue-Level security 

 

When working with the API this page is my go to for troublehsooting these issues 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events