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
Community Members
Community Events
Community Groups

If Group picker custom field changes need to calculate time for each change

We have a group picker custom field called Group Assignee, for Defect every time the group assignee changes until the right group is assigned and closes the defect (age of a defect), if the same group is assigned multiple times and closed the defect then need to accumulate every time spent on defect until it changes, here we need to calculate the time spent by the group which is closed the defect and this should include only working days and working hours like Sunday to Thursday and 9 AM to 6PM.

We have Script runner, JMWE, AIO reports and EazyBi plugins 

Please let me know if I can create a scripted field to get the age of a closed defect considering the above calculations or if I can get the report from eazyBi

Please suggest the possible solution

3 answers

Hi @Veeresh ,
With eazyBI, there is no 'out-of-the-box' solution for your use case.
But you could try creating a JavaScript customfield to calculate duration per assignee. Although I don't have the exact code to share, the possible solution could be similar to this:

- "Days for assignee" from eazyBI documentation:

- And if you would like to calculate workdays, then here is an example for that:

You can check if that is something you could go for and adjust the codes, so they suit your use case. 

Another approach, based on your available apps, would be to calculate this information with the ScriptRunner app in Jira and then import the field using eazyBI advanced settings:

Gerda //

Hi @Gerda Grantiņa ,

Thank you for your suggestion, kindly can you help me with the scripted field (Script runner) if you can

0 votes
Bloompeak Support Marketplace Partner Sep 18, 2022

Hi @Veeresh

As an alternative, you can try Status Time Reports app developed by our team. It mainly provides reports and gadgets based on how much time passed in each status.

Here is the online demo link, you can see it in action and try without installing the app.

  • This app has a dynamic status grouping feature so that you can generate various valuable reports as time in status, time in assignee, status entry dates and status counts, cycle time and lead time, average/sum reports by any field(e.g. average in progress time by project, average cycle time by issue creation month).
  • You can search issues by Project, Issue Type, Status, Assignee, Issue Creation/Resolution Date(and any other Date field) and JQL Query.
  • Status durations are calculated according to the working calendar you define. Once you enter your working calendar into the app, it takes your working schedule into account too. That is, "In Progress" time of an issue opened on Friday at 5 PM and closed on Monday at 9 AM, will be a few hours rather than 3 days.
  • You can set different duration formats.
  • You can export reports in CSV file format and open them in MS Excel.
  • You can also add this app as a gadget to your Jira dashboards and reach “Status Time” from Issue Detail page.
  • You can enable/disable access to Status Time reports&gadgets and Issue Detail page per project, users, groups or project role.

If you are looking for a free solution, you can try the limited version Status Time Free.

Note: If you are interested in cycle and lead time, you can have a look at the article below.

Cycle Time and Lead Time in Jira: Productivity Measurement with Two Critical Parameters

Hope it helps.

Hello @Veeresh ,

If you are OK with using a marketplace app for this, our team at OBSS built Time in Status for this exact need. It is available for Jira Server, Cloud, and Data Center.  

Time in Status mainly allows you to see how much time each issue spent on each status and on each assignee

tisCloud_StatusDuration_LeadTime_with Estimates.png  tisCloud_AssigneeDuration.png     

In addition to these, Time in Status has two other report types that will meet your need.

First, Time in Status has Any Field Duration report type. This report type asks you to select an issue field and can display "how long that issue field had each value". For your case, you can prepare this report based on your group picker field and see how long this group picker field held each value. I believe this is a perfect fit for your use case.


This report type also has a sibling report: Any Field Count. This report type does the same calculation but instead of displaying the times, it shows how many times each value was used. In your case, you can use this report type to see how many times each issue was sent to each group.


Additionally, Time in Status has Group Duration report type. This report type calculates the time each issue was assigned to each user but instead of showing each user in a separate column, the report consolidates them into user groups and displays total group times as columns. This report type might also be useful for you.


For all numeric report types, you can calculate averages and sums of those durations grouped by the issue fields you select. For example total in-progress time per customer (organization) or average resolution time per sprint, week, month, issuetype, request type, etc. The ability to group by parts of dates (year, month, week, day, hour) or sprints is particularly useful here since it allows you to compare different time periods or see the trend.


The app calculates its reports using already existing Jira issue histories so when you install the app, you don't need to add anything to your issue workflows and you can get reports on your past issues as well. It supports both Company Managed and Team Managed projects.

Time in Status reports can be accessed through its own reporting page, dashboard gadgets, and issue view screen tabs. All these options can provide both calculated data tables and charts.

And the app has a REST API so you can get the reports from Jira UI or via REST.

Gadget_AverageStatusDurationByComponent.png  tisCloud_StatusDuration_LeadTime_Chart.png

Using Time in Status you can:

  • See how much time each issue spent on each status, assignee, user group and also see dates of status transitions.
  • Calculate averages and sums of those durations grouped by issue fields you select. (For example, see average InProgress time per project and per issue type.)
  • Export your data as XLS, XLSX, or CSV.
  • Access data via REST API. (for integrations)
  • Visualize data with various chart types.
  • See Time in Status reports on Jira Dashboard gadgets


Hi Emre,

Thank you for your suggestion, we have this plugin trial version, but it's not giving end result for me,

I required the final group assignee who closed the defect and how much time they spent, it's giving the entire history of each group and we need the age of each individual defect 

Hello Vereesh,

For calculating the age of each individual defect, you can use Status Duration (with Consolidated Column feature) or Duration Between Statuses report types of Time in status. (These are separate report types and currently there is no way to get multiple report types in a single report.)

And about group time: Time in Status reports the whole history of each issue.  There is no option to report only the latest group selection on the issue.


Suggest an answer

Log in or Sign up to answer

Atlassian Community Events