[rt-users] sending notification with values of cutom fields
Ken Crocker
kfcrocker at lbl.gov
Fri May 29 12:18:28 EDT 2009
Hunane,
Here's a copy of a template we use for resolved tickets. It includes
Ticket info, CF info and any comments made while resolving the ticket:
Subject: Request Titled: "{$Ticket->Subject}" has been Resolved!
This ticket has been resolved. DO NOT REPLY to this message!
-----------------------------------------------------------------------------
TICKET INFORMATION:
Queue : {$Ticket->QueueObj->Name}
Number : {$Ticket->Id}
Subject: {$Ticket->Subject}
Priority is: {$Ticket->Priority}
Requestor : {$Ticket->Requestors->UserMembersObj->First->Name}
Created by: {$Ticket->CreatorObj->Name}
Created on: {substr($Ticket->Created, 0, 10)}
Owned by: {$Ticket->OwnerObj->Name}
Development Started on: {substr($Ticket->Started, 0, 10)}
-----------------------------------------------------------------------------
Description of Issue:
{$Ticket->FirstCustomFieldValue('Description')}
-----------------------------------------------------------------------------
Resolution comment:
{
my $Resolution_Comment;
my $Transactions;
my $CommentObj;
$Transactions = $Ticket->Transactions;
$Transactions->Limit( FIELD => 'Type', VALUE => 'Comment' );
$Transactions->OrderByCols(
{ FIELD => 'Created', ORDER => 'DESC' },
{ FIELD => 'id', ORDER => 'DESC' },
);
$CommentObj = $Transactions->First;
if ($CommentObj && $CommentObj->id)
{
$Resolution_Comment = $CommentObj->Content;
}
else
{
$Resolution_Comment = "No comment."
}
return $Resolution_Comment;
}
-----------------------------------------------------------------------------
To view ticket information, enter URL:
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
I'm sure your info will be different, but this should give you a
good example of the kinds of info you can put into a notification. Hope
this helps.
Kenn
LBNL
On 5/29/2009 7:18 AM, hanane ourdani wrote:
> hi all,
>
> is it possible to send a notification with a value of cutom field,
>
> thank you
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090529/4b019a0b/attachment.htm>
More information about the rt-users
mailing list