"Limit ticket access to ONLY assigned tickets" is a great feature. However, if checked, staff cannot see the closed tickets which were assigned to them which seems like a bug . How do I fix that so that staff can see all tickets assigned to them and also any past tickets which were assigned & closed by them.

You don't.  Once a ticket is closed, it is no longer assigned to them.IF you would like them to have continued to access to a ticket make sure that it is assigned to a department that the staff has access to.

I don't agree with that, a staff should be able to see the tickets which were assigned to them and they have closed. If not, that's a wrong behavior. In fact, the reason there are two tabs, for open and closed tickets. Also, the intention is to limit ticket view to only what was assigned, so showing all the department ticket is not a solution.

You're more than welcome to agree or disagree as you see fit, however it does not change the way that it is intentional, and how it works.

22 days later

ntozier, Can you elaborate on your workaround please?  I have the same issue.

We want to limit ticket view to the assigned agent or team.  But we also need them to be able to access closed tickets for reference.  All users are in the same department now and they cannot search or view tickets once they are closed.

5 days later
4 days later

Somewhere in the depth of discussion I already suggested this workaround:Create an extra, internal department for closed tickets with full access for all users. So basically a "closed" ticket deparment where you move tickets to before closing them. I don't know a better workaround but this is one I can imagine of.@[deleted]I'm definitely too active here ... Happend more than once today You have posted 2 times within 60 seconds. A spam block is now in effect on your account. You must wait at least 300 seconds before attempting to post again.

2 months later

I agree with jeevhi, it's the wrong behaviour. So I've created a workable solution based on version 1.9.4Edit "tickets.inc.php" in the "./include/staff/" folder:Around line 74, add the following code:if ($thisstaff->showAssignedOnly())    $qwhere.=' OR ( ticket.staff_id='.db_input($thisstaff->getId())        .' AND status.state="closed") ';Edit "class.ticket.php" in the "./include/" folder:Around line 2252, add the following code:if ($staff->showAssignedOnly())            $where = '(ticket.staff_id='.db_input($staff->getId()).' AND status.state="closed")';Works how it should now.

Another section of code needs to be added to the above solution for it to work in version 1.9.4Edit "class.ticket.php" in the "/.include/" folder:Around line 180, add the following code://Staff has access to the closed ticket        if ($staff->showAssignedOnly() && ($staff->getId() == $this->getStaffId()) )            return true;

i agree as well, already said on another post, it doesn't make any sense for them not to be able to see closed tickets. not only for reference, there may be a genuine reason for an agent to re-open the ticket, but it's completely impossible with the current design. what's the point of being able to apply 'view only assigned tickets' if we then have to allow them to see an entire departments tickets, just to see something they've previously closed.also, i'm not sure chefkeks solution is even possible. in 1.9.4 we can't assign agents to more than one department. i don't know if that was possible in previous versions.

3 months later
16 days later

@[deleted], @ntozierI opened a new thread in github. I would like to have a possibility to change this behavior.Kind regardsSweeny

5 days later
17 days later

thanks dude this mod is very helpful indeed.

a month later

We do have same issue here had i agree that this is a wrong behavior.my staff can't go back and check on someone tickets history to see if that person opened a ticket in the past with the same issue or not and this makes our logging system useless.I'm using 1.9.5.1 version and I'm wonder if I could go with the mentioned mod or not?please help

8 days later

Has anyone gotten the code changes above to function in v1.9.6?

We have implemented the code changes but certain users are still unable to see closed tickets.

a month later

Working good with v1.9.7

2 months later

Works on 1.9.9... any chance of getting the closed ticket count to reflect what they have closed?  I'm just showing a "0", even if they click on it and have tickets in there.  I'll keep working on it and post a solution if I find it.

Actually this appears to not be working in the latest version - When you do this and click "edit ticket", make an edit and submit, the page goes white.  The changes are made, but it doesn't load the "thread" page again :-/

We have the same issue.