How to measure the time from when the work item is created to the time it is marked Done in RTC?
Can someone help me to work on the following metrics for the dashboard:
· Time To Resolve (By Type Story, Defect)
o This metric would measure the time from when the work item is created to the time it is marked Done
·
How can i calculate this value in any custom attribute , secondly how can i map this on Dashboard.
Accepted answer
If you want to calculate this in a custom attribute, you could try to use JavaScript. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization and Process Enactment Workshop for the Rational solution for Collaborative Lifecycle Management lab 5 for details. You could compute the time difference between the creation date and the current date.
It is however hard to detect a sate change in JavaScript. Some have done it for some purposes, but it is not easy.
The best way to achieve this in my perspective is a follow up action on save on the server. Same mechanics, but easier and more accurate. See https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ for a follow up action that saves data to attributes and see https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ for how to detect a state change.