How to prevent estimated time on a sub-task rolling up to the estimated time on the story

We want to set up a story as a time bank and allocate sub-tasks to the story so that time logged against the sub-tasks uses up the time bank until there is no time left. At the moment when a sub-task is added then its estimated time is added to the estimated time of the story so we have to manually adjust the remaining time.

1 answer

if i understand, i think your solution is an easy one. note in the screenshot below the checkbox for "Include sub-tasks." if this is unchecked, the total will not sum the hours of the sub-tasks.

Thank you for your comments Tanner. Sadly the solution is not that simple. We want the time taken for the sub tasks to be logged against the story, so the "Include sub-tasks" check box needs to be ticked. We don't want the Estimated time on the story to be changed whenever a sub-task has time logged against it.

To put it another way, when we set up the story, we want to fix the estimated time at say 100 hours. Then we carry out a sub-task that takes 20 hours, so we want the logged time on the story to show 20 hours, the Estimated time to still show 100 hours and the remaining time to show 80 hours.

ahh ... i see. then here's a possible solution:

  1. story gets created.
  2. all necessary sub-tasks get created under the story.
  3. story gets advanced to next workflow status.
  4. upon transition, custom code executes that copies original estimate to a custom field called "locked estimate".

of course, you'll have to write that custom code. you can do so with script runner. great plugin, and i use it often.

Thanks Tanner - I can cope with customisation, but code is a whole different ball game! I'll have a go at installing script runner and see how I get on with that.

I have been unable to install script runner. Does anyone have non-code suggestions?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Mar 09, 2018 in Jira Service Desk

E.L. Fridge's take on education, Jira Service Desk, and creative Jira use cases

...word of mouth, so by 2016, we were working with several other entities on campus to implement Jira Service Desk . The Atlassian motto of “for every team” has really come true for us in this case. We...

1,227 views 2 14
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you