Hi,
Thanks a lot for the great tool that is HESK, both simple and yet full of possibilities & features.
I am beta-testing this helpdesk system within my small group, on a self-hosted server. It was brought to my attention that it would be very ideal if, for one specific category of tickets, closing the ticket would trigger the creation of the same ticket (with same custom field values) but in another category, with just the subject, category and owner modified (typically "please have XXX performed" would turn into "FINAL STEP - please have XXX performed", with a different agent being assigned to the ticket).
I was under the impression this would be straightforward:
1. Setup database trigger/event so that once a ticket of such sort is closed, it gets copied to a "queue" table.
2. Inside this "queue" table, modify the category, owner, subject, dates, etc. The trackid is also modified (last 4 digits are modified randomly among A..Z..0..9).
3. Every 10 minutes, move lines from the "queue" table to the hesk_tickets table.
This seems to work flawlessly, HESK does show the new ticket in the list, however they can't be accessed whatsoever when trying to open them. I believe this has to do with linkage to other tables (such as messages/replies?), and I am looking for a hint on this.
Thanks!
Creating ticket from database event/procedure
Moderator: mkoch227
Re: Creating ticket from database event/procedure
Forget it, typing mistake in trackid was the cause. It works flawlessly now. Sorry for disturbance 

Re: Creating ticket from database event/procedure
Glad to hear you got it working!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools