Hi everyone! Need an assistance in understanding and debugging following problem.
I'm trying to use filters to achieve following:
1) When receiving an email containing certain string (in this example it's basically 'NX') in title or details - assign Help Topic 1.
2) If a ticket of help topic 1 contains certain string (in this Example "console") in the title or details - reply with canned reply.
In order to do so I create 2 filters described like this:
MariaDB [osticket]> SELECT f.id,execorder,match_all_rules,target,how,val,type,configuration
-> FROM ost2_filter AS f
-> JOIN ost2_filter_rule AS r
-> ON f.id=r.filter_id
-> JOIN ost2_filter_action AS a
-> ON r.filter_id=a.filter_id
-> WHERE f.id=8 OR f.id=9;
+----+-----------+-----------------+--------+----------+------------------------+--------+-----------------+
| id | execorder | match_all_rules | target | how | val | type | configuration |
+----+-----------+-----------------+--------+----------+------------------------+--------+-----------------+
| 8 | 23 | 0 | Email | match | /(\bNX\b)|(\bNX\d+)/ui | topic | {"topic_id":1} |
| 8 | 23 | 0 | Email | match | /(\bNX\b)|(\bNX\d+)/ui | topic | {"topic_id":1} |
| 9 | 50 | 1 | Any | contains | console | canned | {"canned_id":3} |
| 9 | 50 | 1 | Any | equal | 1 | canned | {"canned_id":3} |
+----+-----------+-----------------+--------+----------+------------------------+--------+-----------------+`
In Reality only one of those filters actually works. Like, email ticket is assigned its topicID however, canned reply is not sent. OR if the ticket is created via web where the topicID is assigned manually canned reply is actually sent.
My info page page looks like so:
Please, help me figure out the way to address the problem
Update: I forgot to mention, NONE of those 2 rules has 'stop-on-match' flag.