[rt-users] Don't close tickets (or re-open) if a specific custom field is not a specific value

2012-10-24 Thread Holger Haase
Hi all, I searched (Google/wiki/nabble/...) and tried for several hours now. Nothing worked. I have to make sure tha a ticket can only be closed if a custom field (or maybe transaction custom field) has a specific value. I have more than one queue and this should not happen globaly but in severa

Re: [rt-users] Don't close tickets (or re-open) if a specific custom field is not a specific value

2012-10-25 Thread Christian Loos
Am 24.10.2012 16:15, schrieb Holger Haase: > Hi all, > > I searched (Google/wiki/nabble/...) and tried for several hours now. Nothing > worked. > I have to make sure tha a ticket can only be closed if a custom field (or > maybe transaction custom field) has a specific value. > I have more than o

Re: [rt-users] Don't close tickets (or re-open) if a specific custom field is not a specific value

2012-10-25 Thread Jack Zabolotnyi
Or you can use html callbacks to dismiss changes before sending them to scrips - just after user click "Submit" - you can check CF value and in case of error trigger Abort("Error message"). This will show notification to client that his changes were discarded. On Wed, Oct 24, 2012 at 4:15 PM, Holg

Re: [rt-users] Don't close tickets (or re-open) if a specific custom field is not a specific value

2012-10-25 Thread Loos, Christian
Hi Holger, your Custom action preparation code must look like this: my @queue_list = qw(second_level); my $ticket = $self->TicketObj; my $queue = $ticket->QueueObj; my $queue_name = $queue->Name; return 0 unless grep /$queue_name/, @queue_list ; return 0 if $ticket->FirstCustomFieldValue('AssetTa

Re: [rt-users] Don't close tickets (or re-open) if a specific custom field is not a specific value

2012-10-25 Thread Holger Haase
Great, this did the trick! Many thanks to Christian Loos! Best regards, Holger -Ursprüngliche Nachricht- Von: Loos, Christian [mailto:cl...@netcologne.de] Gesendet: Donnerstag, 25. Oktober 2012 12:01 An: Holger Haase Cc: rt-users@lists.bestpractical.com Betreff: AW: Don't close tickets