Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to get time of any status using formula in Structure in jira

IT January 17, 2024

I have to get time when entered  and  moved  for a particular status in jira using formula feature in Structure . So, I can get duration between statues.

CanI  get using issue history

histroy.changes.filter($.field="Status").toText .last() this return current issue status

similar is possible to get time 

4 answers

1 vote
Stepan Kholodov _Tempo_
Community Champion
January 23, 2024

Hello @IT 

You can try a formula like this:

history.changes.filter($.field = "status" and $.to = "status name").changegroup.time

the formula checks the transition to a particular Status and returns a timestamp when it happened. You can add .last() at the end of the formula to display only the last such transition.

I hope this helps. If you need further assistance or if you have questions about anything else in Structure, please reach out to us directly at our support portal and we'll get back to you shortly.

Best regards,
Stepan
Tempo (the Structure app vendor)

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
January 26, 2024

Hi @IT

If you prefer to use a marketplace app, 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. For your case, you can have a look at Time in Status for Each Issue report. You can filter by Issue Type, Status, Assignee, Created fields or by typing your own JQL(using "Switch to JQL" button).

For further details, you can have a look at Status Time Reports How to Videos.

  • 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, resolution 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 completely free solution, you can try the limited version Status Time Reports Free.

Hope it helps.

0 votes
Valeriia_Havrylenko_SaaSJet
Atlassian Partner
January 19, 2024

Hi @IT ,

At the moment it is not possible to reference Time in Status in another Formula. To get time of any status you need to add third-party app. 

You can try Time in Status for Jira add-on (developed by my team), which shows how much time an issue has been spending in each status.  There are different columns for each status. You don't need any formulas or long configs. In a few clicks, you'll get the necessary data!

Also, you'll get data both in Graphs and Chart view.

total.png

Add-on has a 30-day free trial version and free up to 10 users
Please, let me know if you have any questions

Hope it helps 😌

0 votes
Gizem Gökçe _OBSS_
Atlassian Partner
January 19, 2024

 

Hello @IT ,

I suggest using a marketplace app that already does this to try and calculate the durations between statuses by hand. If you are ok to use a marketplace app for your reports, Timepiece - Time in Status for Jira which is developed by my team at OBSS, is the tool I would highly recommend. It is available for both Jira Cloud and Data Center.

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

Time in Status offers two report types for your case:

The first one is Status Duration report (please see the screenshot above) which shows how much time each issue spent on each status. You can combine the time for multiple statuses to get metrics like Issue Age, Cycle Time, Lead Time, Resolution Time etc. Report Types Status Duration Report.png

As an alternative approach, Time in Status also has Duration Between Statuses report type which shows the duration between two specific statuses. This report type also allows the user to exclude the times for "pause" statuses.

Report Types DBS.png

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 for Jira Cloud.

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.

Gadget_AverageStatusDurationByComponent.png  tisCloud_IssueView_Data.png  tisCloud_StatusDuration_LeadTime_Chart.png

Visit Timepiece to explore how our JIRA add-on can revolutionize your metrics measurement process. Enjoy a 30-day free trial to experience the full range of features. 

Timepiece - Time in Status for Jira

Hope it helps,

Gizem

Suggest an answer

Log in or Sign up to answer