Hi all! i am trying to run the code from the link
https://library.adaptavist.com/entity/count-the-time-an-issue-was-in-a-particular-status
But I am getting time "0"
You have the output template set to multi-line text. Try changing it to "duration"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that suggests your calculation is actually the problem.
Is your status definitely called "TO DO" (the = is an exact string match), and the test issue has been through that status at least once (and moved into another status)
After checking those two, the next thing is to insert log lines in there, so the log tab tells you what the contents of variables are as it works through
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.