Creating ticket from database event/procedure

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
jka
Posts: 2
Joined: Fri Oct 18, 2024 11:50 am

Creating ticket from database event/procedure

Post by jka »

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!
jka
Posts: 2
Joined: Fri Oct 18, 2024 11:50 am

Re: Creating ticket from database event/procedure

Post by jka »

Forget it, typing mistake in trackid was the cause. It works flawlessly now. Sorry for disturbance :)
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: Creating ticket from database event/procedure

Post by Klemen »

Glad to hear you got it working!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Post Reply