Alert Group when a ticket in placed into stall

Hi

Does anyone have a script to alert a group when a ticket/request is placed
in a Stall condition.

I use the following to alert the group

$group->LoadUserDefinedGroup(“Group Name”);
$group->MemberEmailAddressesAsString; }

but I cant find the Condition (On Stall ) when setting up the script

Any help much appreciated

View this message in context: http://requesttracker.8502.n7.nabble.com/Alert-Group-when-a-ticket-in-placed-into-stall-tp54135.html

Hi

Hi,

Does anyone have a script to alert a group when a ticket/request is placed
in a Stall condition.

I use the following to alert the group

To: { my $group = RT::Group->new( $RT::SystemUser );
$group->LoadUserDefinedGroup(“Group Name”);
$group->MemberEmailAddressesAsString; }

but I cant find the Condition (On Stall ) when setting up the script

Use a User defined condition such as:

return undef unless ( $self->TicketObj->Type eq ‘ticket’ );
return undef unless ( $self->TransactionObj->Type eq ‘Status’ );
return undef unless ( $self->TransactionObj->NewValue ne $self->TransactionObj->OldValue );
return undef unless ( $self->TransactionObj->NewValue eq ‘stalled’ );
return 1;

Easter-eggs Sp�cialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - M�tro Gait�
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com

Use the “On Status Change”, and look at the new status of that transaction
in your scrip/template.

Thanks,
Jok
| Joachim Thuau | IT Systems Engineer - Linux / SpaceX |On 5/31/13 9:09 AM, “globo” michael.obrien@globoforce.com wrote:

Hi

Does anyone have a script to alert a group when a ticket/request is placed
in a Stall condition.

I use the following to alert the group

To: { my $group = RT::Group->new( $RT::SystemUser );
$group->LoadUserDefinedGroup(“Group Name”);
$group->MemberEmailAddressesAsString; }

but I cant find the Condition (On Stall ) when setting up the script

Any help much appreciated


View this message in context:
http://requesttracker.8502.n7.nabble.com/Alert-Group-when-a-ticket-in-plac
ed-into-stall-tp54135.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


RT Training in Seattle, June 19-20: http://bestpractical.com/training

Does anyone have a script to alert a group when a ticket/request is placed
in a Stall condition.

but I cant find the Condition (On Stall ) when setting up the script

The other answers you received will work, but if you’d like you can
fairly easily add an “On Stalled” condition to the scrip dropdown.

You’ll need to create a small file with the following contents:

@ScripConditions = (
{ Name => ‘On Stalled’,
Description => ‘Whenever a ticket is stalled’,
ApplicableTransTypes => ‘Status’,
ExecModule => ‘StatusChange’,
Argument => ‘stalled’
}
);

This is based on a small piece of etc/initialdata that’s installed with
RT for the “On Resolve”, “On Open”, etc conditions.

Once you have the file, run:

sbin/rt-setup-database --action insert --datafile /path/to/file/above

It’ll insert the “On Stalled” condition you defined into the database
for use in the scrip condition dropdown.