Update for anybody interested, osTicket support sent me an email to say this it correct according to their design that agents available is not limited by department.For me this is strange as this is exactly what is done when an unassigned ticket is processed, only agents for the approved department is shown.