Query that returns the stories where logged work > original estimate (including subtasks)


I'm trying to build a query that returns all the stories in a sprint where the logged work of all subtasks exceed the original estimates of all subtasks.

I tried experimenting with "workratio" but this only seems to work at the subtask level. Is there a way to make this work at the parent level (including all the subtasks)?

I have access to ScripRunner if it's needed.

Thank you

1 answer

@Eric PortelanceIn perspective of agile methods there is something to note on. An estimate is a relative value and not compareable with time. If you are estimating in hours then you could do the compare, but then you are semi-agile.


Ok, if you still say "I know what I am doing" - read on:

I can recommend using the API. There you can add multiple values of subtasks and then compare it to another value (of the story). When the estimate was exceeded you can mark the parent story with a label or another custom field. So you can make them visible with another query within the UI.

Thank you @Sebastian Kleinholz. Do you know if I need System admin rights to use the API? I only have project admin rights. Any other suggestions?

Everything you can do with your browser can be done with the API, in perspective of access rights.

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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

816 views 2 19
Join discussion

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