[Solved] Hide some part Queqe name.

Moderator: crythias

Locked
fqdn
Znuny newbie
Posts: 3
Joined: 17 Sep 2014, 15:16
Znuny Version: 3.3.8

[Solved] Hide some part Queqe name.

Post by fqdn »

Hi

I´d like to know if it is possible to hide some part queue name in Ticket Information and notifiacion send to agent (owner of ticket get some message when someone add note or move ticket to another queue etc.)?

For example I have queue Aplikacja(L3), so after open any ticket i that queue I will see "Queue: Raw::NOC(L1)::Aplikacja(L2)::Aplikacja(L3)" (parent child relations), but for most agents prefer see only "Queue: Aplikacja(L3)".

Regards and thanks,
Last edited by fqdn on 24 Sep 2014, 12:35, edited 1 time in total.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Hide some part Queqe name.

Post by RStraub »

Well, an idea is:

You could edit the .dtl files, such that queue-names are translatable and then add a custom translation.
E.g.:
Queue: Raw::NOC(L1)::Aplikacja(L2)::Aplikacja(L3) -> Queue: Aplikacja(L3)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
fqdn
Znuny newbie
Posts: 3
Joined: 17 Sep 2014, 15:16
Znuny Version: 3.3.8

Re: Hide some part Queqe name.

Post by fqdn »

Thanks for replay.

I created custom translation file on model server /usr/share/otrs/Kernel/Language/pl_Custom.pm :

Code: Select all

package Kernel::Language::pl_Custom;

use strict;
use warnings;

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.4 $) [1];

sub Data {
    my $Self = shift;

    # $$START$$

    # own translations
    $Self->{Translation}->{'Note'} = 'TEST';
    $Self->{Translation}->{'Queue: Raw::NOC(L1)::Aplikacja(L2)::Aplikacja(L3)'} = ''Queue: Aplikacja(L3)';

    # $$STOP$$
    return 1;
}
But I don't know where and what I must edit in that installation OTRS 3.3.8 to translate queue name.

Regards and thanks,
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Hide some part Queqe name.

Post by RStraub »

Examine the AgentTicketZoom.dtl (for example). You'll find the div block for the queue like this:

Code: Select all

                        <label>$Text{"Queue"}:</label>
                        <p class="Value" title="$QData{"Queue"}">$QData{"Queue"}</p>
                        <div class="Clear"></div>
And you have to edit the part "$QData{"Queue"}" to look like this:

Code: Select all

                        <label>$Text{"Queue"}:</label>
                        <p class="Value" title="$QData{"Queue"}">$Text{"$QData{"Queue"}"}</p>
                        <div class="Clear"></div>
(So, wrap it with the $Text{} function.)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
fqdn
Znuny newbie
Posts: 3
Joined: 17 Sep 2014, 15:16
Znuny Version: 3.3.8

Re: Hide some part Queqe name.

Post by fqdn »

RStraub Thanks for your help - my problem was solved.

Regards and thanks
Locked