It's all about the answers!

Ask a question

Calculation of Resolution Time for defects which have been marked as Deferred


Maxim Albuquerque (1527) | asked May 18 '17, 10:11 a.m.

I calculate the Resolution Time of a defect by subtracting the Creation date from the Resolution date field values.  This works fine in the normal defect workflow moving from New, Resolve, Validate, Closed.

When the defect moves to a Deferred state, the resolution time would be too high, without calculating the On Hold time, i.e., the time when the defect was in the Deferred State.

So is there a method to calculate the Resolution time of a defect minus the the time the defect was in deferred state.

One answer



permanent link
Don Yang (7.6k2195131) | answered May 19 '17, 12:07 a.m.

Hi, Maxim

I think you would need to save the date to a custom attribute(such as a hidden attribute) when the state is set to 'deferred' and then use calculation javascript to calculate further.
There are many posts in forum on how to do similar things, such as

https://jazz.net/forum/questions/213456/capturing-the-date-when-state-changes-in-rtc
https://jazz.net/forum/questions/168883/set-workflow-stateaction-via-javascript

 

Your answer


Register or to post your answer.