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."}}
Digging around in other questions, I found my API syntax was wrong.
The correct call for update():
issue.update(fields={"timetracking":{"originalEstimate":"%ih" % hours}})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.