[rt-users] scrip creating multiple (5?) approvals
Richard Foley
Richard.Foley at rfi.net
Fri Mar 27 13:21:04 EDT 2009
I believe I have 5 Custom Fields enabled and I wonder if this might have
something to do with the 5 created approvals...?
--
Richard Foley
Ciao - shorter than aufwiedersehen
http://www.rfi.net/
On Friday 27 March 2009 16:30:58 Richard Foley wrote:
> Hi folks,
>
> I have a template to create an approval ticket in rt 3.8.2:
>
> ===Create-Ticket: Change Request Approval
> Subject: CR Approval for: {$Tickets{TOP}->Id} - {$Tickets{TOP}->Subject}
> Refers-To: TOP
> Queue: ___Approvals
> Requestors: {$Tickets{TOP}->Requestors}
> Depended-On-By: TOP
> Type: approval
> Content-Type: text/plain
> Due: {time + 86400}
> Content: ...
> ENDOFCONTENT
>
> I have a scrip to trigger said approval creation:
>
> Condition: User Defined
> my $ticket= $self->TicketObj;
> if ( $ticket->FirstCustomFieldValue('ticketType') =~ /change request/i ) {
> return 1;
> } else {
> return 0;
> }
>
> Custom action preparation code:
> return 1;
>
> Custom action cleanup code:
> return 1;
>
> I create a ticket of type 'change request' and recieve 5 identical approvals
> for the originating ticket. Anyone have any bright suggestions as to
why...?
>
> --
> Richard Foley
> Ciao - shorter than aufwiedersehen
>
> http://www.rfi.net/
> _______________________________________________
> 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
>
More information about the rt-users
mailing list