Calculate flagged in hours

Hi!

I have a team that use flagged field in a issue many times during the day.

I found this topic of how to calculate in days: Calculating Blocked time on Issues using Flagged Field

I would like to know if its possible to create a calculation in hours.

Hi @guinevere!

You are on the right track! The only line you would change in the code would be this: days_flagged += (date_to - date_from) / 1000/ 60 /60 / 24 ; To get Hours instead of Days, you would not divide with 24h, so the line would be: days_flagged += (date_to - date_from) / 1000/ 60 /60 ;

Please try this, also changing the name of the custom field to be representative. Let me know if you have further questions about it!
Lauma / support@eazybi.com

1 Like