From 5ef064aeca4a22dbe38b538e65d512d5d398fe2f Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 17 Nov 2010 20:44:11 +0000 Subject: create ticket on custom field change, RT#10139 --- rt/lib/RT/Action/CreateTickets.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'rt/lib/RT/Action/CreateTickets.pm') diff --git a/rt/lib/RT/Action/CreateTickets.pm b/rt/lib/RT/Action/CreateTickets.pm index 4883ae3a8..74520ca69 100644 --- a/rt/lib/RT/Action/CreateTickets.pm +++ b/rt/lib/RT/Action/CreateTickets.pm @@ -762,6 +762,7 @@ sub ParseLines { FinalPriority => $args{'finalpriority'} || 0, SquelchMailTo => $args{'squelchmailto'}, Type => $args{'type'}, + $self->Rules ); if ( $args{content} ) { @@ -1238,6 +1239,24 @@ sub PostProcess { } +sub Options { + my $self = shift; + my $queues = RT::Queues->new($self->CurrentUser); + $queues->UnLimit; + my @names; + while (my $queue = $queues->Next) { + push @names, $queue->Id, $queue->Name; + } + return ( + { + 'name' => 'Queue', + 'label' => 'In queue', + 'type' => 'select', + 'options' => \@names + } + ) +} + eval "require RT::Action::CreateTickets_Vendor"; die $@ if ( $@ && $@ !~ qr{^Can't locate RT/Action/CreateTickets_Vendor.pm} ); eval "require RT::Action::CreateTickets_Local"; -- cgit v1.2.1