I have found a few pieces of code that seems to manage this functionality, but I am unsure what nomenclature to use and if adding it may cause unforeseen issues in other area.
Kernel::Modules::AgentTicketActionCommon.pm
Code: Select all
684 # set priority
685 if ( $Self->{Config}->{Priority} && $GetParam{NewPriorityID} ) {
686 $Self->{TicketObject}->TicketPrioritySet(
687 TicketID => $Self->{TicketID},
688 PriorityID => $GetParam{NewPriorityID},
689 UserID => $Self->{UserID},
690 );
691 }
I found two examples in OTRS where you select an action from the queue view and it will redirect you back to the queue view:
1. Close Ticket
Code: Select all
726 # redirect parent window to last screen overview on closed tickets
727 if ( $StateData{TypeName} =~ /^close/i ) {
728 return $Self->{LayoutObject}->PopupClose(
729 URL => ( $Self->{LastScreenOverview} || 'Action=AgentDashboard' ),
730 );
731 }
Code: Select all
646 # redirect
647 if ($ActionFlag) {
648 return $Self->{LayoutObject}->PopupClose(
649 URL => ( $Self->{LastScreenOverview} || 'Action=AgentDashboard' ),
650 );
651 }
Code: Select all
if ( $Param{NewPriorityID} !=~ /^Not/i ) {
return $Self->{LayoutObject}->PopupClose(
URL => ( $Self->{LastScreenOverview} || 'Action=AgentDashboard'
Thanks!