[rt-users] "This is a brand new ticket" test in Scrip custom condition

Jeff Blaine jblaine at kickflop.net
Tue May 11 12:08:01 EDT 2010


[ Answering self ]

     # custom condition
     if ($self->TransactionObj->Type eq "Create") {
         return 1;
     }

     # other custom condition code here...

On 5/10/2010 2:43 PM, Jeff Blaine wrote:
> Probably an easy answer to this one.
>
> I have a custom condition for a scrip which deals with a
> custom field. The condition and the rest of the code all works
> great, except when the submitted ticket is *brand new*
> (New ticket in --> queuename).
>
> I would like to add to my custom condition logic to ensure
> that this case is also addressed.
>
> How does one query for "is this transaction creating a new
> ticket?"
>
> 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