I'd like to add an original estimate, not a remaining estimate to my subtasks in Jira, and I'd also like the original estimate in the subtask to be added to the original estimate in the main task. How would I do this?
If you have the "Time tracking" field added to you project then you should see both the Original and Remaining estimate fields.
By default if you are adding estimates in the sub-tasks they will be added to the parent issue's estimates. Both when adding the original estimate and when logging work. Normally you should not add manually the remaining estimate as that should be subtracted when you log work on the issue and the remaining will be calculated automatically.
Note that you need to add the estimate at creation time or use the Edit function to add estimation to an existing issue.
Thank you for your reply.
According to my scrum master, tjis has been enabled, yet I see no area to add an original estimate on a sub task. Which section of Jira would I do this in?
If you go to a specific issue and click Edit, do you see original and remaining estimate fields? If not click the configure fields in the top right and search for it to see if it is configured to display.
Ah thank you so much kind sir! This was the final solution
Hello,
My solution for push-up the Original Estimate of Sub Tasks in parent Task :
And Copy & Paste this code :
if (!issue.fields.issuetype.subtask) { return}// Retrieve all the subtasks of this issue's parentdef parentKey = issue.fields.parent.keydef allSubtasks = get("/rest/api/2/search").queryString("jql", "parent=${parentKey}").queryString("fields", "parent,timeestimate").asObject(Map).body.issues as List<Map>logger.info("Total subtasks for ${parentKey}: ${allSubtasks.size()}")// Sum the estimatesdef estimate = allSubtasks.collect { Map subtask ->subtask.fields.timeestimate ?: 0 }.sum()logger.info("Summed estimate: ${estimate}")// Now update the parent issueint estimateHours = estimate / 60 / 60logger.info("Parent Issue: ${parentKey}")logger.info("Summed estimate in hours: ${estimateHours}")put("/rest/api/2/issue/${parentKey}") .queryString("overrideScreenSecurity", true).header("Content-Type", "application/json").body([fields: [timetracking: [originalEstimate: estimateHours]]]).asString()
That's work
Anthony,
It looks like you're new here. Sign in or register to get started.