Forums

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

How can i calculate the time spent between each transition ?

Lamrani January 31, 2012

I want to calculate the time spent between each transition in the workflow, such as time spent in analysis including the comings and goings Between the States (the amount of time spent in analysis). the problem is that the Listner available does not support ca. is that there is a method to do this. thank you in advance

2 answers

1 accepted

1 vote
Answer accepted
JamieA
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.
January 31, 2012

I wrote some code very recently to do this. You should have little problem translating to java:

https://studio.plugins.atlassian.com/wiki/display/GRV/Scripted+Fields#ScriptedFields-TotaltimethisissuehasbeenInProgress

The listener has access to the issue, that's all you need to use the code above.

Lamrani January 31, 2012

Thank you for your answer, Is the code above useful for jira 4.3.4

JamieA
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.
January 31, 2012

Yes it is...

Lamrani January 31, 2012

????????????

Lamrani February 6, 2012

Hi, Jamie

I tried this morning to execute your code, but i don't have the type Scripted Field in my version of JIRA (4.3.4)

Do you have an other mehtod please ?

0 votes
Renjith Pillai
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.
February 1, 2012

If this is meant for tracking average time spent in different statuses, there is a gadget already available in Jira 'Average Time in Status'

See https://studio.plugins.atlassian.com/wiki/display/JCHART/JIRA+Charting+Plugin

Lamrani February 6, 2012

HI Renjith,

Thank you for your answer, I want to calculate the time spent in ench statut. For exemple : I want calculate the amount of time spent in analysis (if the issue is reopened the time spent + the time spent after reopened ...)

do you have a way to do that ( or just an idea)

Thank you in advance

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events