Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!
SOLVED

What is developer object currentStatusDuration?

Avatar

Level 2

I am trying to locate where the Issue system update date is stored and stumbled upon the currentStatusDuration field on the developer Objects pages. Does anyone know what this does? I could not find anything about it during searches. Thanks!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @KristinaN 

 

it is the time in hours for which the objects has had its current status. It is reset every time the status changes.

 

ex. after 2min in a status it's currentStatusDuration=0.03333333333333333

 

change status again and it resets to zero and starts counting again. 

 

Nice find! 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 3

Hi @KristinaN 

 

it is the time in hours for which the objects has had its current status. It is reset every time the status changes.

 

ex. after 2min in a status it's currentStatusDuration=0.03333333333333333

 

change status again and it resets to zero and starts counting again. 

 

Nice find! 

Avatar

Level 2

Thank you so much, I am having trouble calling this in text mode. Could you see what I might be missing? Thank you for your swift response!

 

displayname=Current Status Duration
textmode=true
valueexpression=currentStatusDuration
valueformat=double

Avatar

Level 3

Hi @KristinaN 

 

try this. 

  • if you use valueexpression, every fields must be wrapped in curly quotes {}
  • You could also use valuefield=currentStatusDuration
  • I added rounding to 2 decimals 
  • If you're doing valueexpression, "string" seems to always work as valueformat - since you're composing an output  
displayname=Current Status Duration
textmode=true
valueexpression=round({currentStatusDuration},2)+" hrs"
valueformat=string