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"
@Nic Brough -Adaptavist- hi!
my output
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
It looks like you're new here. Sign in or register to get started.