Hi all,
I am trying to write a script that calculates the time spent in each status. I have adapted the code from scriptrunner documentation, replacing the status "In Progress" with "Allocated".
It currently returns Allocated Length:-347009
Could anyone please advise me on how to fix this error (I assume there is an error due to the negative value for time) and display the value in a weeks, days, hours, minutes format?
Thank you
did you find a solution to the problem i am facing the same issue and i would really appreciate your help
can you please give more details it may help me
I did not use Script Runner, but created a plugin which shows how much time an issue spent in each status in its workflow.
I used ChangeHistoryManager.getChangeItemsForField(issue, "status") to get the full Status change list and then iterate through that list to get individual status times.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.