In one of the closed support request was mentioned queuing of tickets received via E-mail. On my system tickets posted from web goes to queue too. This is pretty good feature for accepting/rejecting tickets.
My question: Can I configure notification about new queued ticket?
Now, when user submits request, it happens absolutely silent.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | queue-notification.patch | 9.03 KB | errno |
| #4 | queue_notification.sql_.txt | 147 bytes | errno |
Comments
Comment #1
roczei commentedThere is no mail notification feature for the queue at the moment, maybe the next release will content this. If you have a patch file for this feature then you can sent to us and we will check it.
Comment #2
errno commentedHi, I have done reading Drupal module development documentation, it looks pretty clear. So I will write a queue notification feature, possibly it will be ready on next week.
Comment #3
errno commentedI've started development and having a progress :) But one thing gets me in doubt, I've decided to request a suggestion.
Strange (in my opinion) conditional structure presents in function _ticket_mail_header:
if ($message['id'] != 'ticket_new_assigned') {
...
} elseif ($message['id'] == 'ticket_new_assigned') {
...
}
E-mail calls generated by my code passed via first branch but gets an empty $message['to'], and as a result e-mail is not sent :(
Can I add specific branch for my case? Is it compliant with module design?
Comment #4
errno commentedI have done the patch for Queue notification, it requires two additional fields in ticket_template table (simple SQL script included). Please check it and possibly commit. I will hold deploying to my production server awaiting for your verdict :)
Comment #5
mr.york commentedWe are testing your patch. If it works correctly then it will be commited to the modul.
I am asking for other people to test it and give some feedback.
Comment #6
mr.york commentedI checked your patch and I made a little modification.
This SQL query was before:
and this is the new one:
Reason of my modification: only the default mail addresses and selected mail addresses will get reports.
Comment #7
errno commentedFine, thanks :) I missed this, because it was my first experience with ticketing internals, and Drupal modules development at all.
Comment #8
mr.york commented