Tasks

Hello! My name is Lucas and I will start to hack the RT 3.5 Test code. I’ve
customized RT before and have a little knowledge of it’s architeture. Is
there something in the code I can help?

Thanks,

Lucas/Bolha (Bubble)

Hello! My name is Lucas and I will start to hack the RT 3.5 Test code. I’ve
customized RT before and have a little knowledge of it’s architeture. Is
there something in the code I can help?

That’s a great question. I’d love to see:

  • non-destructive “is my RT running ok” tests
  • scaling tests: create 50,000 tickets, 50,000 users, 100,000
    transactions and see what parts of RT get slow

It’d also be great to mix Devel::Cover and RT’s regression suite to see
what parts of RT aren’t well covered by tests yet.

Best,

Jesse

Hi,

Is there a way to create Queue called “Tasks” and when creating a task
and assigning it to an owner, that it actually emails the owner of the
ticket. I tried using the “OnCreate…NotifyOwner” scrip but it didn’t
work. Any suggestions?

I’m using version 3.6.4

Thanks,
Bill

Hi,

Is there a way to create Queue called “Tasks” and when creating a task
and assigning it to an owner, that it actually emails the owner of the
ticket. I tried using the “OnCreate…NotifyOwner” scrip but it didn’t
work. Any suggestions?

I’m using version 3.6.4

Of course you can do this. But you said you wan’t an email out when you
assign tickets, so your condition should be “On owner change”, and your
action “Email owner”.

You have to write the condition yourself as it doesn’t exists in RT.

See conditions example on Contributions - Request Tracker Wiki.

Bill,

Keep in mind, that a "notify .." will not send anything to "whomever" 

if “whomever” is the person making the change. As to a scrip to notify
of owner change, I use the following scrip/template code:

Scrip code

check transaction as an owner change; no spam for “nobody”

my $trans = $self->TransactionObj;

return 0 unless $trans->Field eq ‘Owner’;
return 1 unless $trans->OldValue == $RT::Nobody->Id;

Template code

To:{
my $Old_Owner;
$Old_Owner = RT::User->new($RT::System);
$Old_Owner->Load( $Transaction->OldValue );
$Old_Owner->EmailAddress();
}

TICKET INFORMATION:
Ticket Queue : {$Ticket->QueueObj->Name}
Ticket Number : {$Ticket->id}
Ticket Subject: {$Ticket->Subject}
Ticket Description:
{
return $Ticket->FirstCustomFieldValue(‘Description’);
}
Ticket Priority is: {$Ticket->Priority}
Ticket Created by: {$Ticket->CreatorObj->Name}
Ticket Now Owned by: {$Ticket->OwnerObj->Name}

I hope this helps.

Kenn
LBNLOn 2/7/2008 1:24 PM, Candelario, Bill wrote:

Hi,

Is there a way to create Queue called “Tasks” and when creating a task
and assigning it to an owner, that it actually emails the owner of the
ticket. I tried using the “OnCreate…NotifyOwner” scrip but it didn’t
work. Any suggestions?

I’m using version 3.6.4

Thanks,
Bill



The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Bill, Kenneth’s example is cool and works, however it notifies old
owner when people change owner except when old owner is nobody. To
notify new owner you should read
NotifyOwner - Request Tracker Wiki .On Feb 8, 2008 2:03 AM, Kenneth Crocker KFCrocker@lbl.gov wrote:

Bill,

    Keep in mind, that a "notify .." will not send anything to "whomever"

if “whomever” is the person making the change. As to a scrip to notify
of owner change, I use the following scrip/template code:

Scrip code

check transaction as an owner change; no spam for “nobody”

my $trans = $self->TransactionObj;

return 0 unless $trans->Field eq ‘Owner’;
return 1 unless $trans->OldValue == $RT::Nobody->Id;

Template code

To:{
my $Old_Owner;
$Old_Owner = RT::User->new($RT::System);
$Old_Owner->Load( $Transaction->OldValue );
$Old_Owner->EmailAddress();
}
Subject: Request Titled: “{$Ticket->Subject}” has a new owner!


TICKET INFORMATION:
Ticket Queue : {$Ticket->QueueObj->Name}
Ticket Number : {$Ticket->id}
Ticket Subject: {$Ticket->Subject}
Ticket Description:
{
return $Ticket->FirstCustomFieldValue(‘Description’);
}
Ticket Priority is: {$Ticket->Priority}
Ticket Created by: {$Ticket->CreatorObj->Name}
Ticket Now Owned by: {$Ticket->OwnerObj->Name}

    I hope this helps.

Kenn
LBNL

On 2/7/2008 1:24 PM, Candelario, Bill wrote:

Hi,

Is there a way to create Queue called “Tasks” and when creating a task
and assigning it to an owner, that it actually emails the owner of the
ticket. I tried using the “OnCreate…NotifyOwner” scrip but it didn’t
work. Any suggestions?

I’m using version 3.6.4

Thanks,
Bill



The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.

Hi Emmanuel,

I tried that and it didn’t work.From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Emmanuel
Lacour
Sent: Thursday, February 07, 2008 4:46 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Tasks

Hi,

Is there a way to create Queue called “Tasks” and when creating a task

and assigning it to an owner, that it actually emails the owner of the

ticket. I tried using the “OnCreate…NotifyOwner” scrip but it didn’t

work. Any suggestions?

I’m using version 3.6.4

Of course you can do this. But you said you wan’t an email out when you
assign tickets, so your condition should be “On owner change”, and your
action “Email owner”.

You have to write the condition yourself as it doesn’t exists in RT.

See conditions example on
Contributions - Request Tracker Wiki.

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

I’m going to try this out. Thanks.From: Kenneth Crocker [mailto:KFCrocker@lbl.gov]
Sent: Thursday, February 07, 2008 6:04 PM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Tasks

Bill,

Keep in mind, that a "notify .." will not send anything to

“whomever”
if “whomever” is the person making the change. As to a scrip to notify
of owner change, I use the following scrip/template code:

Scrip code

check transaction as an owner change; no spam for “nobody”

my $trans = $self->TransactionObj;

return 0 unless $trans->Field eq ‘Owner’; return 1 unless
$trans->OldValue == $RT::Nobody->Id;

Template code

To:{
my $Old_Owner;
$Old_Owner = RT::User->new($RT::System);
$Old_Owner->Load( $Transaction->OldValue );
$Old_Owner->EmailAddress();
}
Subject: Request Titled: “{$Ticket->Subject}” has a new owner!

TICKET INFORMATION:
Ticket Queue : {$Ticket->QueueObj->Name} Ticket Number : {$Ticket->id}
Ticket Subject: {$Ticket->Subject} Ticket Description:
{
return $Ticket->FirstCustomFieldValue(‘Description’);
}
Ticket Priority is: {$Ticket->Priority}
Ticket Created by: {$Ticket->CreatorObj->Name}
Ticket Now Owned by: {$Ticket->OwnerObj->Name}

I hope this helps.

Kenn
LBNL

Thanks for the tip.From: ruslan.zakirov@gmail.com [mailto:ruslan.zakirov@gmail.com] On
Behalf Of Ruslan Zakirov
Sent: Thursday, February 07, 2008 9:51 PM
To: Kenneth Crocker
Cc: Candelario, Bill; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Tasks

Bill, Kenneth’s example is cool and works, however it notifies old owner
when people change owner except when old owner is nobody. To notify new
owner you should read NotifyOwner - Request Tracker Wiki .

Bill,

    Keep in mind, that a "notify .." will not send anything to

“whomever”

if “whomever” is the person making the change. As to a scrip to notify

of owner change, I use the following scrip/template code:

Scrip code

check transaction as an owner change; no spam for “nobody”

my $trans = $self->TransactionObj;

return 0 unless $trans->Field eq ‘Owner’; return 1 unless
$trans->OldValue == $RT::Nobody->Id;

Template code

To:{
my $Old_Owner;
$Old_Owner = RT::User->new($RT::System);
$Old_Owner->Load( $Transaction->OldValue );
$Old_Owner->EmailAddress();
}
Subject: Request Titled: “{$Ticket->Subject}” has a new owner!



TICKET INFORMATION:
Ticket Queue : {$Ticket->QueueObj->Name} Ticket Number :
{$Ticket->id} Ticket Subject: {$Ticket->Subject} Ticket Description:
{
return $Ticket->FirstCustomFieldValue(‘Description’);
}
Ticket Priority is: {$Ticket->Priority}
Ticket Created by: {$Ticket->CreatorObj->Name}
Ticket Now Owned by: {$Ticket->OwnerObj->Name}

    I hope this helps.

Kenn
LBNL

Hi,

Is there a way to create Queue called “Tasks” and when creating a
task and assigning it to an owner, that it actually emails the owner

of the ticket. I tried using the “OnCreate…NotifyOwner” scrip but
it didn’t work. Any suggestions?

I’m using version 3.6.4

Thanks,
Bill




The rt-users Archives

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


The rt-users Archives

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.