[rt-users] 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 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-placed-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
Re: [rt-users] Alert Group when a ticket in placed into stall
On Fri, May 31, 2013 at 09:09:54AM -0700, globo wrote: 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:elac...@easter-eggs.com - http://www.easter-eggs.com -- RT Training in Seattle, June 19-20: http://bestpractical.com/training
Re: [rt-users] Alert Group when a ticket in placed into stall
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.obr...@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 -- RT Training in Seattle, June 19-20: http://bestpractical.com/training
Re: [rt-users] Alert Group when a ticket in placed into stall
On 05/31/2013 09:09 AM, globo wrote: 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. -- RT Training in Seattle, June 19-20: http://bestpractical.com/training