I have a query. How can I find the total spent by a Story in particular Status (say, "In Progress"). I want to achieve this using Jira automation only without using any Add-ons or third party tools.
Note: Here, the story can be reopened. So, the time should be calculated accordingly.
Hi @Jayanth
Assuming you mean the total time spent in a specific Status...
Short answer: That is not easily possible with automation rules.
Without a marketplace app, there are at least four approaches to gather time spent in a specific Status:
The first one may (or may not) accurately track when an issue returns to a Status (such as with backwards flow). The documentation says it does, others have sometimes reported it does not.
The second approach with an automation rule requires that the automation engine never / rarely has an outage. This is important because after an outage, some rules may not trigger when the event occurred, and others will not trigger at all. Both of these reduce the accuracy of measurement.
The third approach uses the issue changelog and automation, and in theory is as accurate as a marketplace app. The problem is there are limits to the number of changelog entries returned by the REST API, and so repeated calls and paging are required. The only ways I know to do that and accumulate a total are: with a recursive rule using an Incoming Webhook trigger, or to add a bunch of unique Entity Properties (one for each page checked) and then sum them later with another rule. Due to the complexity of these approaches it would probably be easier to write your own app outside of Jira to perform the measurement using the REST API.
For the fourth, spreadsheet approach: I have never tried that for time measurement so you may need to do some internet searches to find examples.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.