It's all about the answers!

Ask a question

how stop counting age of a work item if is closed?

Rafael Rodriguez Montes (23013104203) | asked Mar 29 '16, 2:58 p.m.
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?

Don Yang commented Mar 29 '16, 8:12 p.m.

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.

Donald Nong commented Mar 29 '16, 10:51 p.m.

Where do you use the "script"? How do you define "age"? Without these details, it would be difficult to suggest any alternatives.

Be the first one to answer this question!

Register or to post your answer.