What is developer object currentStatusDuration? | Community
Skip to main content
Level 2
October 9, 2024
Solved

What is developer object currentStatusDuration?

  • October 9, 2024
  • 1 reply
  • 783 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sven-atClient

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! 

1 reply

Sven-atClient
Sven-atClientAccepted solution
Level 3
October 10, 2024

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! 

KristinaNAuthor
Level 2
October 10, 2024

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

Sven-atClient
Level 3
October 10, 2024

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