Looking for Solution Time in OTRS Database

Moderator: crythias

Locked
intrepidfroot
Znuny newbie
Posts: 16
Joined: 22 Mar 2012, 10:21
Znuny Version: 31000
Real Name: Matthew Smith

Looking for Solution Time in OTRS Database

Post by intrepidfroot »

Hi,

Am wondering where (in which table/field) the "Solution Time" value is stored in the OTRS database, or if it's automatically calculated each time a ticket is viewed?

Any assistance would be appreciated.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Looking for Solution Time in OTRS Database

Post by crythias »

Code: Select all

    $Data{SolutionTime} = $Data{Closed};
Kernel/System/Ticket.pm
sub _TicketGetClosed
Which, basically, returns the last closed state (create_time of ticket_history in one of the states of state type closed) as the solution time.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked