Aggregate times in custom fields


I'm using Script Runner to calculate the total estimate, remaining work and total time spent of all issues and subtasks related to an epic.

JQL is working fine 

issuefunction in subtasksOf("'Epic Link' = ABC-1") OR "Epic Link" = ABC-1 AND issueFunction in aggregateExpression("Total Estimate for all Issues", "originalEstimate.sum()", "Remaining Estimate for all Issues", "remainingEstimate.sum()", "Total Time spent", "timespent.sum()")

and results in an alert box when executing the search showing all my times.

Problem / Challenge:

I want to create 3 custom fields for all my epics dynamically calculating and showing the times for all issues and subtasks in it.

I'm looking forward to hints & tips! Thanks!



4 answers

Great question, if you figure it out I'd be interested in knowing as well!

Hi @Anja,

This plugin may be useful for you.

Hi @Anastasia Kozlova,

thanks for the hint and I would love to use it, but I'm not smart enough to figure out the Java code for my logic above smile I'm no developer.

Best, Anja

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 Tuesday 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...

162 views 1 17
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