Gatti Luca
Fri, 05 Feb 2010 02:29:23 -0800
Hi all.
We needed the possibility to use the last ArticleID number in ticket in
notification email. So we added the following lines in
NotificationEvent.pm after "# prepare customer realname" section.
my @AllArticleIDs = $Self->{TicketObject}->ArticleIndex(
TicketID => $Param{TicketID},
);
my $LastArticleID = $AllArticleIDs[$#AllArticleIDs];
$Notification{Body} =~ s/<OTRS_ARTICLE_ID>/$LastArticleID/gi;
Now, the tag <OTRS_ARTICLE_ID> is replaced with the last ArticleID and
it's possible send a notification email to the customer with a link to
the latest email exchanged.
<OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>cus
tomer.pl?Action=CustomerTicketZoom&TicketID=<OTRS_TICKET_ID>&ArticleID=<
OTRS_ARTICLE_ID>#<OTRS_ARTICLE_ID>
Hoping that can be useful....
Bye
--------------------------------------------------------
Luca Gatti
ICT System Administrator
lga...@bindagroup.com
tel +39 02 39245.380
fax +39 02 39245.200
Via Montefeltro, 4 - 20156 Milano - Italy
bindagroup.com
--------------------------------------------------------
This e-mail and any file transmitted with it may contain material that is
confidential and for the sole use of the intended recipient. If you are not the
intended recipient of this e-mail, please do not read this e-mail and notify us
immediately by reply e-mail and then delete this message and any file attached
from your system. Any other use is prohibited.
Il presente messaggio di posta elettronica e ogni eventuale documento a
quest'ultimo allegato potrebbe avere carattere riservato ed e ad esclusivo
utilizzo del destinatario indicato in indirizzo. Qualora non foste il
destinatario del presente messaggio per cortesia avvisateci immediatamente
tramite posta elettronica e cancellate il presente messaggio e ogni documento
ad esso allegato dal Vostro sistema. Ogni altro uso e proibito.
<<inline: LOGO binda.gif>>
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/