Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why "Extract time in status" with Adaptavist not works?

Alex
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2022

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"

easfe.png

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2022

You have the output template set to multi-line text.  Try changing it to "duration"

Alex
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2022

@Nic Brough -Adaptavist-  hi!

my output 

уацв.png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2022

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

Suggest an answer

Log in or Sign up to answer