ViewMove : how to set note-exernal as default ?

Moderator: crythias

Locked
StefanoBoccanera
Znuny newbie
Posts: 76
Joined: 23 Feb 2011, 15:43
Znuny Version: 3.1.5
Real Name: Stefano Boccanera
Company: I.Conseils (self-employee)
Location: Rome (Italy)

ViewMove : how to set note-exernal as default ?

Post by StefanoBoccanera »

Hi
I'd like to set the note's default for ViewMove to note-external, but the Config screen doesn't show any field related to this parameter (like ViewNote for example).
How I can to set note-external as default for ViewMove ?

regards

stefano
Stefano Boccanera

OTRS : 3.1.5
ITSM : 3.1
S.O : RH
RDBMS : Postgres
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ViewMove : how to set note-exernal as default ?

Post by jojo »

you can not
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
StefanoBoccanera
Znuny newbie
Posts: 76
Joined: 23 Feb 2011, 15:43
Znuny Version: 3.1.5
Real Name: Stefano Boccanera
Company: I.Conseils (self-employee)
Location: Rome (Italy)

[SOLVED] Re: ViewMove : how to set note-exernal as default ?

Post by StefanoBoccanera »

Hi jojo

I solved the problem modifying AgentTicketMove module.
Following the code that modifies the note's type from internal to external according to the destination queue.

Code: Select all

# Start customized section 
#         my $searchQueueString = 'RfC-1-Non-Standard,RfC-2-Standard,RfC-3-Hot-Fix,RfC-4-Emergency';
         if ( ($GetParam{DestQueueID} < 12) &&  ($GetParam{DestQueueID} > 7) ) {
            $ArticleID = $Self->{TicketObject}->ArticleCreate(
            TicketID       => $Self->{TicketID},
            ArticleType    => 'note-external',
            SenderType     => 'agent',
            From           => "$Self->{UserFirstname} $Self->{UserLastname} <$Self->{UserEmail}>",
            Subject        => $GetParam{Subject},
            Body           => $GetParam{Body},
            MimeType       => $MimeType,
            Charset        => $Self->{LayoutObject}->{UserCharset},
            UserID         => $Self->{UserID},
            HistoryType    => 'AddNote',
            HistoryComment => '%%Move',
            NoAgentNotify  => 1,
        );
# Uncommented following code to trace 
#           my $messageString = "<TRACE 2> <AgentTicketMove> <testing on queue value $GetParam{DestQueueID}>";
#           $Self->{LogObject}->Log(
#                          Priority => 'notice',
#                          Message  => $messageString,
#            );
         }
        else {
        $ArticleID = $Self->{TicketObject}->ArticleCreate(
            TicketID       => $Self->{TicketID},
            ArticleType    => 'note-internal',
            SenderType     => 'agent',
            From           => "$Self->{UserFirstname} $Self->{UserLastname} <$Self->{UserEmail}>",
            Subject        => $GetParam{Subject},
            Body           => $GetParam{Body},
            MimeType       => $MimeType,
            Charset        => $Self->{LayoutObject}->{UserCharset},
            UserID         => $Self->{UserID},
            HistoryType    => 'AddNote',
            HistoryComment => '%%Move',
            NoAgentNotify  => 1,
        );
        }
# end customized section 
Stefano Boccanera

OTRS : 3.1.5
ITSM : 3.1
S.O : RH
RDBMS : Postgres
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ViewMove : how to set note-exernal as default ?

Post by jojo »

changing code is always bad as it will be overwritten on next update
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ViewMove : how to set note-exernal as default ?

Post by crythias »

Since Queues aren't relevant to Customers, customers generally should not have any knowledge of what happens to a ticket once submitted. It shouldn't matter to a customer anything about how many times or where a ticket moves within your agent side.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked