osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now
Set agent according to department, when open incident (osTicket v1.10.1)
As it is possible to establish that the field Assign To:
only show the agents that belong to a specific department, after having established the corresponding information in said field.