Search result (CSV) Close Time

Moderator: crythias

Locked
ThomasPL10
Znuny newbie
Posts: 90
Joined: 11 Feb 2014, 17:24
Znuny Version: 3.3.2

Search result (CSV) Close Time

Post by ThomasPL10 »

Hello everyone.

Maybe some of you know how the OTRS recon close time e.g. in CSV filme with search result. Because there's no such column i database like close_time or something.

I found that in "ticket_history" table is column "history_type_id" and the ID "27" means changing the state of the ticket then if next state is closed in "state_id" column there is value "2". In "ticket_history" table there is also "change_time" and "create time" columns. Which actually are the same and are the time of closing ticket. Of course there is also "ticket_id" column which connects the "ticket_history" with "tickets" table

But is this so complicated that to recon the close time? Maybe there is some easier way to export that information from the database?
Untitled.png
Thanks for any ideas.
You do not have the required permissions to view the files attached to this post.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Search result (CSV) Close Time

Post by crythias »

note that create_time and change_time are timestamps for the record entry (when it was entered, and theoretically if it gets modified.)
close_time is (IIRC) considered the last state change that makes the ticket closed.
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