Hi, how can I find the corresponding ticket number from ost_thread_entry?
I've done a search on the body in ost_thread_entry and it came back with this:
+---------------+-------------------------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------------------------------------+------+-----+---------+----------------+
| ticket_id | int unsigned | NO | PRI | NULL | auto_increment |
| ticket_pid | int unsigned | YES | MUL | NULL | |
| number | varchar(20) | YES | | NULL | |
| user_id | int unsigned | NO | MUL | 0 | |
| user_email_id | int unsigned | NO | | 0 | |
| status_id | int unsigned | NO | MUL | 0 | |
| dept_id | int unsigned | NO | MUL | 0 | |
| sla_id | int unsigned | NO | MUL | 0 | |
| topic_id | int unsigned | NO | MUL | 0 | |
| staff_id | int unsigned | NO | MUL | 0 | |
| team_id | int unsigned | NO | MUL | 0 | |
| email_id | int unsigned | NO | | 0 | |
| lock_id | int unsigned | NO | | 0 | |
| flags | int unsigned | NO | | 0 | |
| sort | int unsigned | NO | | 0 | |
| ip_address | varchar(64) | NO | | | |
| source | enum('Web','Email','Phone','API','Other') | NO | | Other | |
| source_extra | varchar(40) | YES | | NULL | |
| isoverdue | tinyint unsigned | NO | | 0 | |
| isanswered | tinyint unsigned | NO | | 0 | |
| duedate | datetime | YES | MUL | NULL | |
| est_duedate | datetime | YES | | NULL | |
| reopened | datetime | YES | | NULL | |
| closed | datetime | YES | MUL | NULL | |
| lastupdate | datetime | YES | | NULL | |
| created | datetime | NO | MUL | NULL | |
| updated | datetime | NO | | NULL | |
+---------------+-------------------------------------------+------+-----+---------+----------------+
But I cannot match it with a ticketnumber to find the ticket. Can someone please help me?