[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-devel
Subject:    Re: [Rt-devel] User defined Condition: Autoclose
From:       Asif Iqbal <vadud3 () gmail ! com>
Date:       2009-02-12 19:07:36
Message-ID: a60f25fc0902121107v3febac8cxefcd30ad3ede21ba () mail ! gmail ! com
[Download RAW message or body]

On Thu, Feb 12, 2009 at 2:02 PM, Asif Iqbal <vadud3@gmail.com> wrote:
> On Thu, Feb 12, 2009 at 1:17 PM, Asif Iqbal <vadud3@gmail.com> wrote:
>> How do I define a condition where requestor address is 'user@example'
>> com? I will use this condition to close a ticket
>>
>> In chapter 6.1.3 Conditions of RT Essentials by Oreilly I see
>> something like this
>>
>> $self->TicketObj->status eq 'deleted';
>>
>> and
>>
>> my $email = $self->TicketObj->RequestorAddresses[0]
>>
>> So can I have a user defined condition like this?
>>
>> $self->TicketObj->RequestorAddresses eq 'user@example.com' ?
>>
>> Is that a valid syntax ?
>
> I tried to setup like this thru web but it does not resolve the
> ticket. What am I doing wrong?
>
> Description: AutoClose
> Condition: User Defined
> Action: User Defined
> Template: Global template: Autoreply
> Stage: TransactionCreate
>
> Custom condition:
>    $self->TicketObj->RequestorAddresses eq 'vadud3@gmail.com';
>
> Custom action preparation code:
>    return 1;
>
> Custom action cleanup code:
>    $self->TicketObj->SetStatus resolved;

It is working now. I found the fix in
http://wiki.bestpractical.com/view/ResolveTicket

>
> I see it create a ticket but it does not autoclose it
>
>
>
>>
>> --
>> Asif Iqbal
>> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
>> A: Because it messes up the order in which people normally read text.
>> Q: Why is top-posting such a bad thing?
>>
>
>
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>



-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic