Hello,
I need to calculate the handling time for the tickets
.
The status #is (333) of the ticket is a drop-down list (New (206), Open (207), Closed (208))
I am here using the MySQL formula:
case
when ([333]=(208) then ([date_updated]-[date_added])/86400)
end
My next step is to generate a chart report with category handling time (like mail requests or mail incidents).
Thanks in advance
Reda
Handling time (Solved)
-
- Posts: 88
- Joined: 09 May 2017, 11:10
- Name: Ahmed Reda
- Location: Egypt
- Company Name: kalaweeza.com
- Contact:
Handling time (Solved)
Last edited by ahmedvolks on 16 Feb 2024, 22:23, edited 1 time in total.
- dhickey76
- Posts: 85
- Joined: 27 Mar 2020, 20:45
- Name: Damien
- Location: Utah, USA
- Company Name: Techtop Canada
- Contact:
Re: Handling time
I feel like this would be better handled using the Dynamic date field. Create a dynamic date formula to calculate the date range in timestamp format then convert to seconds. You can use the dynamic date field in reports.
-
- Posts: 88
- Joined: 09 May 2017, 11:10
- Name: Ahmed Reda
- Location: Egypt
- Company Name: kalaweeza.com
- Contact:
Re: Handling time (Solved)
Thank you for your reply. I used the MySQL formula:
CONCAT(
IF(([1627]= (1081)),
((floor(([date_updated]-[date_added])/86400))), 0), 'D:',
LPAD(IF(([1627]= (1081)), (floor((([date_updated]-[date_added])/3600) - ([1628]*24))), 0), 2, 0), 'h:',
LPAD(IF(([1627]= (1081)), (ROUND((([date_updated]-[date_added])/60)-(([1632]*60)+([1628]*24*60)))), 0),2,0), 'm'
)
1 2 3 4
CONCAT(
IF(([1627]= (1081)),
((floor(([date_updated]-[date_added])/86400))), 0), 'D:',
LPAD(IF(([1627]= (1081)), (floor((([date_updated]-[date_added])/3600) - ([1628]*24))), 0), 2, 0), 'h:',
LPAD(IF(([1627]= (1081)), (ROUND((([date_updated]-[date_added])/60)-(([1632]*60)+([1628]*24*60)))), 0),2,0), 'm'
)
1 2 3 4