Hi! thank you, is working now, but to create a new ticket a details is needed, this can be all code to create a new ticket:
$ticket_data = [
'department_id' => 1,
'staff_id' => 1, // This field is optional
'service_id' => 38, // This field is optional
'client_id' => 1, // This field is optional
'summary' => 'This a new Requirement',
'priority' => 'high',
'status' => 'open',
];
$ticket_repply = [
'details' => 'Hi, I need a new Requirement'
];
Loader::loadModels($this, ['SupportManager.SupportManagerTickets']);
$ticket = $this->SupportManagerTickets->add($ticket_data);
if (!is_null($ticket)) {
$this->SupportManagerTickets->addReply($ticket,$ticket_repply);
}