It's all about the answers!

Ask a question

calculate the time that a work item was in the previous state


Cristian Gonzalez (111) | asked Sep 06 '16, 12:51 p.m.
HI,
i need view in a attribute, the time that a work item was in a previous state
Example:
 I have a Work Item Task in state new, when change the state to "in progress", I need view the total time that work item was in the state new

2 answers



permanent link
Cristian Gonzalez (111) | answered Sep 12 '16, 3:00 p.m.
Hi lily
i have a value calculated, with the code of the link
https://jazz.net/forum/questions/180890/defect-age-by-state
I need that the return, have the value in milliseconds, i need to show the result in Days, hours and minutes

The code of the link, show the value in Integer
what i can do?

Comments
Lily Wang commented Sep 12 '16, 8:25 p.m.

permanent link
Lily Wang (4.9k714) | answered Sep 09 '16, 3:54 a.m.
You can implement the function using Script-based Calculated Value Provider. For the general usage, please refer to https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Calculated_values
You can also find there are similar discussions about detail script implementation. For example:
https://jazz.net/forum/questions/180890/defect-age-by-state
https://jazz.net/forum/questions/95825/rtc-calculated-value-dependent-on-status-is-triggered-by-any-change

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.