[rt-users] set automatically the owner of a new ticket
Stefan Kornhuber
stefan at kornhuber.com
Mon Mar 15 03:01:35 EST 2004
Hello Todd,
this command seems to be a few buggy (syslog file)
$self->TransactionObj->$Transaction->Attachments->First->GetHeader('MyHeader')
BTW. Is somewhere a description about such commands on the rt page?
thanks for your help
Steve
Todd Chapman wrote:
> This script should work. Change MyHeader and fred to the
> appropriate values.
>
> Description: Set Owner
> Condition: OnCreate
> Action: User Defined
> Custom action preparation code:
> 1;
> Custom action cleanup code:
> if ($self->TransactionObj->$Transaction->Attachments->First->GetHeader('MyHeader') eq 'fred') {
> $self->TicketObj->SetOwner('fred');
> }
> else {
> return 1;
> }
>
> Stage: TransactionCreate
> Template: Global template Autoreply
>
> On Sun, Mar 14, 2004 at 07:39:49PM +0100, Stefan Kornhuber wrote:
>
>>Hello,
>>
>>Systeminfo: RT 3.0.9
>>
>>I have following problem:
>>Another management system will send mails with an additional owner
>>information in the header to rt especially for one owner.
>>
>>How could I create a script, which set the owner depending on the
>>additional header information?
>>
>>thx for your help.
>>Steve
>>_______________________________________________
>>rt-users mailing list
>>rt-users at lists.bestpractical.com
>>http://lists.bestpractical.com/mailman/listinfo/rt-users
>>
>>Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>
>
More information about the rt-users
mailing list