Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,856
Community Members
 
Community Events
165
Community Groups

Where does it mention the valid structure for updating original time estimates?

I was trying to update original estimates through code but the docs were misleading on that regard.

The edit issue API docs said that I can identify the editable fields by calling the edit-meta API.

I called the edit-meta API which returned the following response (ie. showing portions of the response only to clarify my problem)

{
"id": "timetracking",
"key": "timetracking",
"name": "Time tracking",
"custom": false,
"orderable": true,
"navigable": false,
"searchable": true,
"clauseNames": [],
"schema": {
"type": "timetracking",
"system": "timetracking"
}
},
...
{
"id": "timeoriginalestimate",
"key": "timeoriginalestimate",
"name": "Original estimate",
"custom": false,
"orderable": false,
"navigable": true,
"searchable": false,
"clauseNames": [
"originalEstimate",
"timeoriginalestimate"
],
"schema": {
"type": "number",
"system": "timeoriginalestimate"
}
},

 

Both clauses don't clarify that to update the original estimate field, I must send the following payload to the edit-issue API:

{
"fields": {
"timetracking": {
"originalEstimate": 1440
}
}
}

As you can see, the originalEstimate field is enclosed in a timetracking object.

I have been trying to send the following payload instead, but kept throwing errors

{
"fields": {
"originalEstimate": 1440
}
}

So could I have figured that out on my own!

I admit that the edit-issue API docs gave a clue to that. But what about other fields with a similar case? I mean, how can I rely on the docs if they don't guide me to the valid structure for that field and others too?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

974 views 15 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you