Hello, I’m trying to prevent customers to create tickets from mail. We have web form which when filled contains every information we need. Then data from form is extracted and put into custom fields.
I tried MandatoryOnTransaction (http://search.cpan.org/~tsibley/RT-Extension-MandatoryOnTransition-0.03/lib/RT/Extension/MandatoryOnTransition.pm ) with condition * -> new but this isn’t working – mails with just body text can be registered as ticket. Then I tried OnCreateCheckCF (http://requesttracker.wikia.com/wiki/OnCreateCheckCF ) and it kind of worked in first place – I get message that ticket is rejected due to not used form, but then when using web form, I get same message even that cusotm fields ware filled in ticket. I guess that OnCreateCheckCF i an old code for 3.8.4 and I’m using 4.2.3 on this instance. Any help of achiving „Mandatory CF on creation from mail”? Oh, and here is error log when OnCreateCheckCF is triggered: [22704] [Fri Apr 8 06:51:59 2016] [info]: Ticket 2048 created in queue 'Klient' by bmaciejewski (/opt/rt4/sbin/../lib/RT/Ticket.pm:548) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "(?#Mandatory)" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "\x{28}\x{3f}..." isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "\x{28}\x{3f}..." isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Use of uninitialized value $val in string ne at (eval 589) line 16. ((eval 589):16) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Use of uninitialized value $val in string ne at (eval 589) line 16. ((eval 589):16) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Use of uninitialized value $val in string ne at (eval 589) line 16. ((eval 589):16) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Use of uninitialized value $val in string ne at (eval 589) line 16. ((eval 589):16) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Use of uninitialized value $val in string ne at (eval 589) line 16. ((eval 589):16) [22704] [Fri Apr 8 06:51:59 2016] [warning]: Argument "" isn't numeric in numeric eq (==) at (eval 589) line 14. ((eval 589):14) [22704] [Fri Apr 8 06:51:59 2016] [info]: <rt-4.2.3-22704-1460098319-54.2048-29-0@reklamacje> #2048/57890 - Scrip 29 OnCreateCheckCF (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:284) --------- RT 4.4 and RTIR Training Sessions https://bestpractical.com/training * Washington DC - May 23 & 24, 2016
