- Firefox 4 for Android is not bad at all. I'll have to use more of it until Chrome will come. :-) #
- I'm at Chester's http://4sq.com/ijCCEY #
Month: March 2011
Day in brief
- Shared: Earth Hour 2011 http://bit.ly/emoKD3 #
- I have to wake up in about three hours. I wonder why am I not in bed still… #
- I'm at E.F.I. Technics Garage (Dimokratias, Limassol) http://4sq.com/eCPzxW #
- And when was the last time you cooked yourself dinner at midnight on a weekday? :-) #screwhralthyeating #
Day in brief
- I'm at Molly Malones http://4sq.com/gVJ9AB #
RT3 : Automatically assign owner by queue
There is one bit of functionality that I keep reusing for pretty much every installation of RT3 – automatic assignment of tickets to specific users based on queue. Â There are a few solutions to this problem and some are documented in RT3 wiki. Â But I always keep forgetting which solution to use and where I found it. Â So, in hopes not to ever spend more than 3 seconds searching for such a solution, I’m posting it here.
We’ll be using a global scrip instead of a per-queue scrip. Â This will simplify maintenance for those installations that use a lot of queues – you’ll need to change settings only in one place rather than all over the place. Â Create the new global scrip with the following settings:
- Description:Â AutoSetOwnerForQueue
- Condition: On Create
- Action: User Defined
- Template: Global Template : Blank
- Stage: TransactionCreate
- Custom condition: return 1;
- Custom action preparation code: return 1;
- Custom action cleanup code:
my %owners = ( 'queue_name1' => 'username1', 'queue_name2' => 'username1', 'queue_name3' => 'username2', ); my $QueueName = $self->TicketObj->QueueObj->Name; return 1 unless defined($owners{$QueueName}); my $Actor = $self->TransactionObj->Creator; return 1 if $Actor == $RT::SystemUser->id; return 1 unless $self->TicketObj->Owner == $RT::Nobody->id; my $MyUser = $owners{$QueueName}; $RT::Logger->info("Auto assigning ticket #". $self->TicketObj->id ." to user $MyUser" ); my ($status, $msg) = $self->TicketObj->SetOwner( $MyUser ); unless( $status ) { $RT::Logger->warning( "Impossible to assign the ticket to $MyUser: $msg" ); return undef; } 1;
Last time I’ve used this was on RT 3.8.8. Adjust accordingly for the earlier and later versions.
Trailer : The Three Musketeers
Yet another take on “The Tree Musketeers”. Â It seems that with every other try there’s even more visual effects and even less common sense. Â I don’t know how they do it.
[youtube=http://www.youtube.com/watch?v=a82C8CLR2NE]