When creating a task . All the agents are shown even if a specific department is selected. The agent list should be restricted to the department selected only.
Why all agents list is showing ?