JLF-7: Added function and tests to get length of time in each state for an issue
JLF-7:Now tells you how long something has been in its current state