Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
deeps Offline
New Member
 
Posts: 25
Join Date: Aug 2007
Ticket alerts to abide by a staff user's work schedule - 18-09-2007, 09:27 AM

SupportSuite version: 3.11.01 stable

Simple patch to provide the basic functionality - in all alert cases, if a staff user is supposed to receive an alert, but is not marked as being 'on duty' by their work schedule, they will not receive any alert.

Ever.

There's certainly room for improvement here, but it's a decent enough start.

Edit: SNIPPED! Look below for the update.

Hope this helps anyone who needs it.

Deeps
Attached Files
File Type: txt alertrules.diff.txt (1.9 KB, 11 views)

Last edited by deeps; 20-09-2007 at 09:10 AM. Reason: Updated the code, see below!
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,858
Join Date: Aug 2006
Location: Mumbai, India
18-09-2007, 11:58 AM

This sounds neat, thank you for sharing it



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
deeps Offline
New Member
 
Posts: 25
Join Date: Aug 2007
Update - 20-09-2007, 09:09 AM

Improved this now so that you can specify rules that should run regardless of the user's work schedule.

Requires an update to the database, table alertrules, add a new field to the end of it

name: ignoreuserschedule
type: binary(1) (this can also be a smallint like the other 0/1 values in there)
default: 0

Note, these are full diffs from the original source, not upgrade patches from my earlier post.

functions_alertrulesui.php:
- Adds a new option to the alert on the UI
- Modifies the 2 functions (insertAlertRule and updateAlertRule) to know what the field is, and to update it accordingly

functions_alertrules.php:
- Updates the previous function to now only cull staff that aren't on duty if the alert isn't supposed to ignore duty schedules
- Updates each of the alert functions to pass on this information (this is a horrible horrible hack, it would be much neater to do this processing before and pass the staff that aren't on duty in the $ignorelist, but hey, this is just supposed to be a hack until kayako sort it out properly ;-))

staff_alertrules.php:
- Updates the calls to insertAlertRule and updateAlertRule to use the new $ignoreuserschedule
Attached Files
File Type: txt alertrules.diff.txt (9.9 KB, 7 views)
File Type: txt alertrulesui.diff.txt (4.2 KB, 5 views)
File Type: txt staff_alertrules.diff.txt (2.6 KB, 5 views)
   
Reply With Quote
  (#4) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
29-09-2007, 02:17 PM

How and where do you define a staff member's "work schedule"?


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#5) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,858
Join Date: Aug 2006
Location: Mumbai, India
29-09-2007, 04:12 PM

Login to the Staff CP:
Staff CP > Preference > Work Schedule



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#6) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
29-09-2007, 04:16 PM

LOL...can't believe I missed that one. One question, I notice that the work schedule mimicks the schedule that you setup within admin cp-->SLA. If you change it from within the staff cp does it change or effect the sla schedule or are these completely different?


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#7) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
29-09-2007, 04:17 PM

Deeps,

Can you provide these files in a more generic format so that we can manually modify the files rather then using the diff files? Right now if you open it in notepad its difficult to see where lines begin/end or have been changed.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#8) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,858
Join Date: Aug 2006
Location: Mumbai, India
29-09-2007, 04:26 PM

The staff schedule has nothing to do with the SLA schedule and will not affect it at all.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#9) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
29-09-2007, 04:49 PM

Thanks Hiren. Then what does it really do? How does it play into the support aspect of staff?


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#10) Old
deeps Offline
New Member
 
Posts: 25
Join Date: Aug 2007
01-10-2007, 08:06 AM

Siora, open the files in wordpad or anything other 'better' text editor - notepad cant handle UNIX line breaks (just LF, rather than CRLF), while almost everything else can.

What format would you like? Name the tool and I'll run it to generate the differences for you.

As for what it's actually supposed to do, I have no idea. We don't use the SLA stuff here, so it's not something I'm too worried about! It's probably explained in the manual though

Deeps.
   
Reply With Quote
  (#11) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
01-10-2007, 12:49 PM

I use dreamweaver but let me try it in wordpad first before you waste your time. I'll keep you posted. Thanks.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#12) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,858
Join Date: Aug 2006
Location: Mumbai, India
01-10-2007, 01:42 PM

Well I am not sure why Varun added the Scheduler for Staff Users as it does absolutely nothing as far as the software goes. Probably he had thought of a feature which he didn't/could not add in the software.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#13) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
01-10-2007, 01:56 PM

I see cause as of right now I don't see it driving anything. Maybe with this mod that Deeps did we can make use of it.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
Reply

Tags
abide, alerts, schedule, staff, ticket

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alerts Tickets -> Alerts -> Abide by staff schedule richm Feature Requests 13 17-12-2007 12:53 AM
Alerts vs Departments vs Staff PeteV How do I? 2 03-08-2007 07:56 PM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM
Kayako SupportSuite v3.04.10 Stable Build Varun Shoor News and Announcements 2 06-10-2006 10:41 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47