Handling time (Solved)

Ask your questions here.
Post Reply
ahmedvolks
Posts: 88
Joined: 09 May 2017, 11:10
Name: Ahmed Reda
Location: Egypt
Company Name: kalaweeza.com
Contact:

Handling time (Solved)

Post by ahmedvolks »

Hello,

I need to calculate the handling time for the tickets
2024-01-30_21-30-09.png
2024-01-30_21-30-09.png (6.88 KiB) Viewed 250 times
.
The status #is (333) of the ticket is a drop-down list (New (206), Open (207), Closed (208))
2024-01-30_21-33-40.png
2024-01-30_21-33-40.png (8.26 KiB) Viewed 250 times
2024-01-30_21-37-14.png
2024-01-30_21-37-14.png (25.36 KiB) Viewed 250 times
I am here using the MySQL formula:

case
when ([333]=(208) then ([date_updated]-[date_added])/86400)
end
2024-01-30_21-35-16.png
My next step is to generate a chart report with category handling time (like mail requests or mail incidents).


Thanks in advance
Reda
Last edited by ahmedvolks on 16 Feb 2024, 22:23, edited 1 time in total.
User avatar
dhickey76
Posts: 85
Joined: 27 Mar 2020, 20:45
Name: Damien
Location: Utah, USA
Company Name: Techtop Canada
Contact:

Re: Handling time

Post by dhickey76 »

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.
ahmedvolks
Posts: 88
Joined: 09 May 2017, 11:10
Name: Ahmed Reda
Location: Egypt
Company Name: kalaweeza.com
Contact:

Re: Handling time (Solved)

Post by ahmedvolks »

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
2024-02-16_20-24-22.png
2
2024-02-16_20-35-38.png
3
2024-02-16_20-28-12.png
2024-02-16_20-28-12.png (17.74 KiB) Viewed 139 times
4
2024-02-16_20-28-41.png
Attachments
2024-02-16_20-27-52.png
Post Reply