- Edited
Hey guys, I fixed this old plugin I found called osticket-spreader by berezuev.I am able to round-robin auto-assign tickets to my agents.I was wondering if there was anyone savvy with PHP who could help me deduce some things about this plugin's code.I'm trying to figure out, where it stores the selected "Agents" to auto-assign.What im trying to do, is create a PHP script that runs on a cronjob (task-scheduler), which deselects certain agents and selects other agents, this way I can automate times for when agents come into work and leave work.I'm not the most literate PHP coder, but I'm doing my best. Just needed help figuring out where this script stores your "Agent" selection.You can find it here on Github: https://github.com/berezuev/osticket-spreaderAlso, if you want this functioning and running on your osTicket 1.10.1, simply modify the code in spreader.php on line 25 from "model.created." to "ticket.created", and the auto-assignment should function just fine with no errors.