Owner Count/ Ticket Report

Moderator: crythias

Locked
Sp39672G
Znuny newbie
Posts: 1
Joined: 11 Jun 2014, 12:15
Znuny Version: kix 4

Owner Count/ Ticket Report

Post by Sp39672G »

Hello,

Is there an easily available report that will show the number of owner changes a ticket goes through in its lifetime, or could someone please advise me how to create one? Eventually, will require to know who the owners are the ticket goes through, but the count is more important for now.

Thanks
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Owner Count/ Ticket Report

Post by reneeb »

In the SQL Box (Admin Area):

Code: Select all

SELECT COUNT(*) + 1 AS owners FROM ticket_history th INNER JOIN ticket_history_type tht ON th.history_type_id = tht.id WHERE tht.name = 'OwnerUpdate' AND th.ticket_id = ...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked