Create calculated custom field to track time in a particular status

Deepanshu Natani
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2021

I want to create a custom field "Time in Status" which should have the value of how long an issue has been in a particular status.

e.g. : Time in To Do - This custom field should track how long the corresponding Jira issue was in "To Do status"

How can this be achieved in Jira Cloud? In Server/ DC, this was possible by using "Jira Misc Custom Fields (JMCF)"

 

5 answers

2 accepted

1 vote
Answer accepted
Mariana_Pryshliak_Saasjet
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 12, 2021

Hello @Deepanshu Natani 

You can try a third-party add-on developed by my team - Time in Status for Jira Cloud.

It generates 7 types of reports based on statuses.

7typesofreportt_tis.png

Time in Status report shows you how long each issue has been spent in each status. You just need to choose the date ranges you need and get a report of all issues and how much time has been spent to solve them.

Extract a report as XLSX or CSV files for further analyzing Excel or Google Spreadsheets.

I hope, you find it helpful.

Best regards, Mariana

0 votes
Answer accepted
Emre Toptancı _OBSS_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 11, 2021

Hello @Deepanshu Natani ,

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

Time in Status does not introduce a custom field or a custom field type to your system but it can display its output in its own reporting page, Jira dashboard gadgets and in a new tab on issue view pages.

Time in Status allows you to see how much time each issue spent on each status or assigned to each assignee. You can combine statuses into consolidated columns to see metrics like Resolution Time, Cycle Time or Lead Time. You can calculate averages and sums of status (or consolidated status) durations grouped by issue fields you select. (For example see the average InProgress time per project or average resolution time per issuetype and assignee.)

  tisCloud_StatusDuration_Report.png  tisCloud_IssueView_Data.png  Gadget_AverageStatusDurationByComponent.png

Gadget_AverageStatusCountByComponent_Chart.png  tisCloud_IssueView_Chart_StackedColumn.png

The app calculates its reports using already existing Jira issue histories so when you install the app, you can get reports on your past issues as well. You don't need to modify your workflows.

The app has custom calendar support so you can get your reports based on a 24/7 calendar or your custom business calendar. (This one is important because a 24/7 calendar in most cases shows misleading data. For example an issue created at 16:00 on Friday and was resolved at 09:00 on next Monday seems to stay open for 2,5 days but in terms of business hours, it is only a few hours. You can see this using Time in Status by OBSS.)

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 issuetype.)
  • Export your data as XLS, XLSX or CSV.
  • Access data via REST API.
  • See Time in Status data and charts on issue view screen and Jira dashboards.

https://marketplace.atlassian.com/1211756

EmreT

4 votes
Bill Sheboy
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.
March 11, 2021

Hi @Deepanshu Natani 

There are lots of marketplace add-on products to do this measurement.

If you do not want to purchase them, you could add a custom field (or a few for different status values or categories) and use a couple of Automation for Jira rules to maintain the value(s):

  • One rule to start the clock on a transition
  • One scheduled rule (based upon your frequency of need) to update a time counter, from start date/time to {{now}}

Best regards,

Bill

0 votes
Bloompeak Support
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 11, 2021

Hi @Deepanshu Natani ,

You can try Status Time app. It provides reports on how much time passed in each status as well as status entry dates and status transition count.

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. It has various other reports like assignee time, status entry dates, average/sum reports(eg. average in progress time per project). And all these are available as gadgets on the dashboard.

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

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

Please note that I'm one of the members of the Bloompeak team.

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2021

Are you asking how to create a custom field, or how to create a custom field specifically for time data, or how to calculate and store the data in that field?

If you are asking about creating a Duration custom field, that does not seem to be supported for JIRA Cloud, but there are issues in the backlog for it.

https://jira.atlassian.com/browse/JRACLOUD-67720

https://jira.atlassian.com/browse/JSWCLOUD-15988

It appears that this app might provide the functionality:

https://marketplace.atlassian.com/apps/5139/enhancer-plugin-for-jira?hosting=cloud&tab=overview

...according to their documentation:

https://confluence.snapbytes.com/enhancer-plugin/custom-fields/duration-custom-fields

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events