how stop counting age of a work item if is closed?
Hello I used the script sample that depends of the modify date and calculate the current age of the work item in days and hours, but I would like to do is if is already closed, is there any way to stop counting? I know that i can get the state value and return null but it erase my current age value, so any other idea?
|
Be the first one to answer this question!
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.
Comments
Hi, Rafael
You may want to consider a logic to save the age value at the closed date, then if the state is closed, return the saved age value instead of null.
Where do you use the "script"? How do you define "age"? Without these details, it would be difficult to suggest any alternatives.