[rt-users] SetStatus and SetOwner scrip question

Mathew Snyder theillien at yahoo.com
Tue Aug 14 12:39:58 EDT 2007


I did what you suggested.  It still isn't having an effect.  The owner doesn't
change nor does the status.

Keep up with me and what I'm up to: http://theillien.blogspot.com


Gene LeDuc wrote:
> Hi Mathew,
> 
> If you have that code in the Cleanup area, make sure you have a "return
> 1;" in the Prep area (otherwise the Cleanup code doesn't execute).
> 
> I'm not sure that you can pass "Nobody" to the SetOwner method; I think
> it wants an Id rather than a name.  Use $RT::Nobody->Id to get the Id
> for "Nobody":
>   $self->TicketObj->SetOwner($RT::Nobody->Id);
> 
> Regarding which template, it doesn't matter because User Defined actions
> can't access templates.  I always set it to Global:Blank so I don't
> think that it's actually doing anything.
> 
> Regards,
> Gene
> 
> At 08:23 AM 8/14/2007, Mathew Snyder wrote:
>> RT 3.6.1
>>
>> Condition: On Queue Change
>> Action: User Defined
>> Template: Not sure which one I should be using
>>
>> I figure that that the Custom action cleanup code should be
>> $self->TicketObj->SetStatus("new"); and
>> $self->TicketObj->SetOwner("Nobody");
>> but nothing happens.
>>
>> This is my first attempt at a custom scrip so I don't know what needs
>> to be
>> done/in place for it to work.  My Custom Condition is blank, my Custom
>> action
>> preparation code is blank.
>>
>> Any thoughts?
>> Mathew
>> -- 
>> Keep up with me and what I'm up to: http://theillien.blogspot.com
>> _______________________________________________
>> 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