Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,559,974
Community Members
 
Community Events
185
Community Groups

Time spent in Epic vs Tempo

Good day!

Is it possible to configure JIRA Dashboard - Epic lists to additionally show how much time has been registered for each Epic (and all issues that are included in it)? We do register time using Tempo Timesheets. Apparently it does not provide any field that could show summarized time on Dashboard. I was also considering to use Epic SumUp which correctly shows time when Epic details are shown, however it looks like Epic SumUp fields cannot be used in JIRA Dashboard. Has anyone had similar challenge and what would be suggested solution? 

Regards,

Andrzej

2 answers

1 accepted

0 votes
Answer accepted
Marc Minten _EVS_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 16, 2019

Hi, I am using the scriptrunner plugin and added a scripted (custom) field to the Epics.

Am I correct by understanding that with ScriptRunner you have developed some cascading update? I mean any time a new worklog is registered under Epic your macro also increase Total Time field in Epic? Thanks for helping me to sort this out!

Marc Minten _EVS_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 16, 2019

In fact, a scripted field is a field that is "calculated" at the moment the field is shown on screen (with some good caching :-)). So there is not really a "cascading update".

Any chance you for sharing the script file or quoting the inline script please? That would be very helpfull...

Marc Minten _EVS_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 17, 2019

 

The script code is

import com.atlassian.jira.issue.Issue
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.IssueLinkManager

Issue epicIssue = issue

if (epicIssue.getIssueType().getName() != "Epic") {
return null
}

IssueLinkManager issueLinkManager = ComponentAccessor.getIssueLinkManager()

Long timeSpent = 0
if (epicIssue.getTimeSpent()) {
timeSpent = timeSpent + epicIssue.getTimeSpent()
}
epicIssue.getSubTaskObjects().each { subIssue ->
if (subIssue.getTimeSpent()) {
timeSpent = timeSpent + subIssue.getTimeSpent()
}
}
issueLinkManager.getOutwardLinks(epicIssue.getId()).each { epicLink ->
if (epicLink.getIssueLinkType().getName() == "Epic-Story Link") {
Issue epicLinkedIssue = epicLink.getDestinationObject()
if (epicLinkedIssue.getTimeSpent()) {
timeSpent = timeSpent + epicLinkedIssue.getTimeSpent()
epicLinkedIssue.getSubTaskObjects().each { subIssue ->
if (subIssue.getTimeSpent()) {
timeSpent = timeSpent + subIssue.getTimeSpent()
}
}
}
}
}
if (timeSpent == 0) {
timeSpent = null
}
return timeSpent

and the Script Field Template should be set to "Duration (time-tracking)"

Then you see for example in the Epic view :

Capture.PNG

Like Bodavo likes this

Dear Marc!

What I can say - works like a charm. This is exactly what I needed! 

Thank you very much, I owe you a beer or two!

Marc Minten _EVS_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 21, 2019

Great. Will you bring me the beer :-):-) ?

Marc,


Is there a way to do this script and base it on the Estimated Story Points? We do not use the time tracking tool but want the ability to show the story points total for all linked issues for that Epic. Can you suggest something for this situation?

Marc Minten _EVS_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 11, 2019

Hi Trisha,

 

Yes, of course. Just replace the getTimeSpênt() method by a getCustomFieldValue of the appropriate field ...

Thanks for the script. I tried in scripted field and it gave me the time spent only when i have logged on the epic. It doesnt add the sub-task of stories to the epic.

Our hierarchy is epic -- story / task --subtasks . We log hours either in subtask for the story or in tasks for the epic. How can i get all logged time and sum it for Epic?

I need this to add to my big picture for Scaled Agile.

 

Thanks in advance.

Marc Minten _EVS_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 08, 2019

Hi, this is exactly what the script does: sum-up all time registered on the Epic, on its sub-tasks, on the Stories/Tasks in the Epic and on their respective sub-tasks !

yes, it did. It really helps. Thanks a lot.

Hi

The above code doesn't working in scriptrunner cloud,  Can you please share me the script for cloud?

Thanks

Mrudula

Marc Minten _EVS_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 06, 2022

We are not using Cloud....

Scripts are very different...

Hi @Marc Minten _EVS_ t,

Thanks for the script for this issue!

It works fine for me as well, but there is the issue that it displays the sum of logged times in seconds... :D

While this is very entertaining in a brain teasing way, do you know if there is any way to set up a conversion that changes the way the value is displayed?

Thanks in advance,

Gergely

Never mind! We managed to solve it in house.

Thanks,

G

Like Dave Rosenlund _Tempo_ likes this

Here's an alternate solution:

Reporting the Time Logged against a Jira Epic

  1. In Jira, Tempo > Reports > Custom Report
  2. Filter By, Epics.
  3. Type in your Epic's key. For example, XYZ-123. When you see the correct epic appear in the list, click it. Then, click in any white area to make the Epics box disappear.
  4. You should see a list of all issues (stories, tasks, etc.) that are part of your chosen Epic, along with a Total of all the time (∑ or Worked Hours) logged to these issues.

Suggest an answer

Log in or Sign up to answer