Hi,  In my osticket setup, I have only one department and  have two to three teams whose members are already in that department. Ticket re-assignment to individual agents of any of the team is working but when I choose the team of a agent  in the drop down menu, I am getting the following error.--------- Invalid assignee. Must be department member--------- Since there is only one department. All agents will be in the same department and I am confused and couldn't figure it out. Am I doing anything wrong here? Can anyone help me to solve this issue?

Please help us to help you by reading and following the posting

guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.

I think I can kinda confirm this issue... One of our agents ruin into it this week, but I had no time yet to look further into it.Our situation is a bit different (2 departments, 1 Team with agents of both departments) but the error appeared also when the agent from the other department tried to assign it to the team. The funny thing then was that after a department transfer of the ticket I could assign it to that team successfully. The only difference in our system is the primary department and the group, so definitely need to look further into that issue next week, but I guess this could be a potential bug that a appears only under certain circumstances.Beside we run osTicket 1.9.8.1 with apache 2.4.x, MySQL 5.6.x and PHP 5.6.x and I am sorry to kinda break the rules@[deleted] but instead of starting an own thread I chime in here since I think it's a bug. Hopefully I find the time next week to find more details about that issue here.MichaelPS: iirc The "invalid assignee" message was introduced in 1.9.7 - I remember that I translated it for the German language pack after 1.9.7 release.

Sorry for not mentioning the osticket version. I was using version 1.9.7 and yesterday I tried upgrading it to the latest version 1.9.8.1. But still the issue persists. My apache php mysql version is listed below. As Chefkeks pointed out, I am having issue to re-assign the ticket to one particular team which is having two members. One is the department manager itself and another guy is a same department member assigned as Team Leader of the team.  But sometimes the re-assignment works, as Chefkeks mentioned above. I can successfully re-assign the tickets individually to them. I am wondering whether it's a bug or due to a any wrong configuration setups?===# httpd -vServer version: Apache/2.2.15 (Unix)Server built:   Oct 16 2014 14# php -vPHP 5.3.3 (cli) (built: Oct 30 2014 20) Copyright (c) 1997-2010 The PHP GroupZend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies# mysql --versionmysql  Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1# =========

As Chefkeks pointed out, I am having issue to re-assign the ticket to one particular team which is having two members. One is the department manager itself and another guy is a same department member assigned as Team Leader of the team.

That is really interesting! In our case the team as mentioned has members from 2 departments. One is the department manager from department B and he could NOT re-assign the ticket. But I (not a department manager) from department A could assign the ticket without any issues.

So my guess is that the issue is that the agent that tries to re-assign the ticket is also the department manager. If you're not faster @[deleted] I'll try to confirm this theory next week.

I was able to reproduce the issue with my local installation as well as our test installation so I opened a issue over at github:https://github.com/osTicket/osTicket-1.8/issues/2143

7 days later

The problems seems to be a issue with the scp/ticket.php code.

------------- in the case "assign" -----------

elseif ($_POST!='s'

&& $dept->assignMembersOnly()

&& !$dept->isMember($id)) {

$errors = sprintf('%s. %s',

__('Invalid assignee'),

__('Must be department member'));

-------------

In the above code while assigning to a team, the code is checking the team ID with the entire staff ID of the department which doesn't match at all and hence giving that error.

8 days later

Chefkeks, please take note of my above reply. Could you please update my finding to that github ticket. This is not addressed in the recent releases. 

Thanks,I updated the github issue.

The solution mentioned by greezybacon has not solved the issue. If you put "==" in the code, then team assignment works but the user can assign ticket to any team of any department. That is "Restrict ticket assignment to department members" check not works. I feel that there should be a seperate check for this condition (restricting ticket assignment  strictly to a team whose members are from the same department) . Could you please update the github issue regarding my findings? ==========elseif ($_POST=='s'

&& $dept->assignMembersOnly()

&& !$dept->isMember($id)) {

$errors = sprintf('%s. %s',

__('Invalid assignee'),

__('Must be department member'));================

Write a Reply...