That's what I thought too but unfortunately no. Perhaps I should suggest something like that on osTicket's github,
- Edited
Yes I did. The docs explain how to refer a ticket to an agent and I can do that, but doesn't mention where that agent can see which tickets are referred to them. As far as I can see (and from what I tried), the only way to know which tickets are referred to you is, if you getting told outside the ticket system. It's not even visually displayed in the ticket itself. An entry mentioning the referral appears in the ticket timeline, but you cant't see it in the ticket details shown at the top. So unless you scroll through the entire Ticket, you'll never now if it was referred to someone.
But maybe I'm just missing an option I have to set first to make this visible. Otherwise this nice feature feels a bit incomplete since the agents have to manually keep track in which tickets they're listed as a referral.
I recently upgraded our System to v 1.11 an I just came across the referrals feature which looks promising. However, it seems there's no way to see which tickets are referred to you. So, I wanted to create a queue for our agents that shows all the tickets referred to them but there is no referrer field either.
Am I just missing a setting or something or is the feature actually missing in osTicket.
- Edited
Apparently my "Fix" breaks the ticket view for agents that are not in a team. So I made a fix for my fix.
I added a check for staff teams and only add the team filter when the agent actually is in a team.
My code in include\staff\tickets.inc.php on line 99 and following, now looks like this (my new code in blue, removed code in red):
case 'assigned':
$status='open';
$staffId=$thisstaff->getId();
$results_type=__('My Tickets');
// original filter
/*
$tickets->filter(Q:(array(
'staff_id'=>$thisstaff->getId(),
Q:(array('staff_id' => 0, 'team_id__gt' => 0)),
)));*/
// Default filter
$ticket_filter = array(
'staff_id'=>$thisstaff->getId(),
Q:(array('staff_id' => 0, 'team_id__gt' => 0)),
);
$staff_teams = $thisstaff->getTeams();
// Add lookup only for teams if agent is in one
if(!empty($staff_teams)){
$ticket_filter = $staff_teams;
}
// add filter back in
$tickets->filter(Q:($ticket_filter));
$queue_sort_options = array('updated', 'priority,updated',
'priority,created', 'priority,due', 'due', 'answered', 'number',
'hot');
break;
- Edited
So what I did to solve this is I changed some code in the php files.
In include\staff\tickets.inc.php on line 105 I added
'team_id__in' => $thisstaff->getTeams(),
to the filter conditions so it should look something like this:
$tickets->filter(Q:(array(
'staff_id'=>$thisstaff->getId(),
Q:(array('staff_id' => 0, 'team_id__gt' => 0)),
'team_id__in' => $thisstaff->getTeams(), // NOTE: monkey patched
)));
Now team tickets should appear as assigned to any agent in the team, regardless of the actual agent assigned.
To also include the team tickets in the ticket counter in the tab-bar I edited include\class.ticket.php on line 2957. I just commented out the check for the staff-id.
I simply changed line 2957 from
&& $S == 0
to
//&& $S == 0
Now the whole condition should look something like this:
elseif ($S
//&& $S == 0
&& $teams
&& in_array($S, $teams))
// NOTE: Changed to include assigned team tickets. Originally didn't count assigned team tickets
$stats += $S;
Now Team tickets appear under My Tickets for every team member and the assigned agent
- Edited
This sounded like a good idea and I tried your solution. Unfortunately the %{signature} variable is not available in canned responses. I can insert %{ticket.thread.original} but the result would be just the same as when I use the build-in feature.
- Edited
Sorry, I got the terminology wrong. With owner I mean assignee not the user.From my perspective a ticket assigned to my team should be treated as it's also assigned to me, because it is in a way. And it works like that as long as it's team only (no agent assigned). I thought of a team as a way to assign a ticket to multiple agents in a convenient way.Anyway, I get that this is probably not possible. At the moment I work around the issue by creating a filter for the custom search. But unfortunately I would have to do this for every agent there is and will come.
- Edited
I'm sorry, maybe I didn't explain it right.If I'm in a team and the ticket is assigned to the team, it should list under owned tickets regardless of the agent assigned, (there's no I in Team, right? ;)). From what I understand the ticket should not only be visible to the team members but also count to their assigned tickets. And it works exactly like that as long as the ticket is ONLY assigned to a team. As soon as an agent is assigned it's not listed under owned tickets anymore, doesn't matter if in team or not (except if you're the owner of course) although I'm still technically owning the ticket through my team. It's still listed under open tickets of course.Unfortunately a normal agent can't free a ticket himself and then assign it to the team only.You can easily reproduce this by having two departments. Support and a second one, Development in my case. You have an Agent A1 in Support an some in Development, also a Team X that consists of some members of the Development department, lets say D1 to D4.Now when A1 creates a ticket in the support department without assigning it to an agent but to team X instead, the agents D1 to D4 get the new ticket listed under their owned tickets.But usually it works like this: An email comes in and automatically creates a ticket that is assigned to agent A1. A1 now assigns the same ticket to Team X. Agent D1 to D4 can see the ticket in open tickets, (if they pay attention) but cant see that it's actually assigned to them.We're using osticket version 1.10, php 5.5.38, currently running in a XAMPP environment for evaluation; if that helps.
- Edited
In osticket we have a team X (basicaly 3rd-Level-Support) which stretches over several Departments.Usually the workflow is like this: Ticket comes in and is assigned to a supporter. Supporter investigates the issue and sometimes comes to the conclusion that he needs in-depth technical help. He then assigns the ticket to the team X . The ticket stays in the Support department since it's technically still a support case that needs further investigation by team X, the supporter is still responsible for communication with the client.Problem is that the ticket does not show under MyTickets for Team X because it is at the same time assigned to the original agent (also cant be unassigned easily), so it usually takes Team X a while to see that there is a Ticket that needs their attention. Is it possible to make these Tickets appear under "my Ticktes" for Team X like it would if it is only assigned to the team and has no agent?
- Edited
Okay I tried that but the problem is that this would always attach the original without being obvious to the user. Also we have cases were we don't want the original messages attached.
- Edited
We recently switched our support team to osTicket. Previously we used plain thunderbid for answering to support emails. In thunderbird you can configure where the quoted text and signature should go. Until now we are used to have our signature above the original messages and below our reply.Is there a way to do this in osTicket? I already tried to change the template for email answers/replies but it looks like that's the wrong place.