Hi
Loads of thanks. Its working fine now. My requirement is as below. Following groups are configured.
1)Head of eng - all permissions- dept transfer, close ticket, assign ticket.
In the above group there is only one person.
2)Individual dept head - dept transfer, assign ticket (only to his grp), close ticket.
In the above group there are heads of civil, workshop, electrical, AC,LTS.
3) civilstaff - only assign ticket (only to his group).
All staff under civil.
4) electstaff - only assign ticket (only to his group).
..
etc.
Now after modifying the code, as per yours, only that department staff
is seen while assigning ticket and that is what is required.
As per the procedure followed, I don't want the civilstaff group or electstaff group to close the ticket, they have to write comments (either completed or not completed) and assign the work to their heads.
Now my problem is, though I am setting the permission of civil staff group or electstaff group "can not close ticket ", still they have the permission to close the ticket.
It can be over come, when the civil staff logs in, he has only option as reassigning ticket. So he can reassign the ticket to his colleagues or to dept head as per the requirement.
As I am not good in php code please help to over come this also.
Thanks
The civildhead can then write comments to user and close the ticket.