-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK For my scrip I have:
Condition: User Defined
Action: Create Tickets
Template: Create-Followup
Stage: Transaction Create
User Condition is:
return 0 unless $self->TransactionObj->Type eq "Resolved"
return 0 unless $self->TicketObj->FirstCustomFieldValue('Followup') =~
/Yes/i;
1;
My Template is:
===Create-Ticket: generate-followup
Queue: Customer Service
Subject: Invoice: { $Tickets{'TOP'} -> Subject() }
Requestor: {$Tickets{'TOP'}->OwnerObj->EmailAddress() }
RefersTo: {$Tickets{'TOP'}->Id() }
Content: A follow up was requested on this ticket. Please refer to
previous ticket for more information.
ENDOFCONTENT
And still no joy :( :(
Todd Chapman wrote:
> ----------------
> Now playing: The Decemberists - Summersong
> http://foxytunes.com/artist/the+decemberists/track/summersong
>
> On 11/5/07, Matt Westfall <[EMAIL PROTECTED]> wrote:
> There are two TransactionObj there. So would
>
> unless ( $self->TransactionObj->Type eq "Resolved" &&
> $self->TransactionObj->Field == FIELD_ID )
> { return 0; }
>
> return 0 unless $self->TicketObj->FirstCustomFieldValue('Followup') =~
> /Yes/i;
>
> 1;
>
>
> The first check would 1) ensure that the ticket is being resolved &&
> That the CustomField is Set.
>
> Then if Followup is Yes, it would then return 1?
>
> What is the purpose of self->transactionobj->Field == ####??
>
>
>> That part doesn't make sense. Get rid of it.
>
> Should I just be checking for if it's Resolved, and if so, checking value?
>
>
>> Yes.
>
> Thanks,
> Matt
> Tim Wilson wrote:
>>>>>>> On Mon, Nov 5, 2007 at 1:41 PM, in message <[EMAIL PROTECTED]>,
>>>> Matt Westfall <[EMAIL PROTECTED]> wrote:
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>> I did see that page on the Wiki. However, I am trying to take an action
>>>>> when the ticket is resolved, and if a custom field is something.
>>>> On this part...
>>>>
>>>> unless (
>>>> ( $self->TransactionObj->Type eq "CustomField"
>>>> && $self->TransactionObj->Field == FIELD_ID )
>>>> || $self->TransactionObj->Type eq "Create"
>>>> ) {
>>>> return 0;
>>>> }
>>>>
>>>> return 0 unless
>>>> $self->TicketObj->FirstCustomFieldValue('CUSTOM_FIELD_NAME') =~
>>>> /CUSTOM_FIELD_VALUE/i;
>>>>
>>>> 1;
>>>>
>>>> You could probaby change the TransactionObj type to "Resolved."
>>>>
>>>> -Tim
>>>>
>>>>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
>>
If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in
touch today.
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
>>
>>
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
>>
>>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFHMiOtb/8X6V5MpAURAjHlAJ4h0EtG5gBhUr0aAEBDKZ0lwDQDGgCgl/Gw
A5tnyG598thLEFR4Ug/rKAk=
=IIzu
-----END PGP SIGNATURE-----
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch
today.
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com