How to create ticket in help desk after submit sales order

How do you create a ticket at the help desk after submitting a sales order?

For that open helpdesk tab and from there you need to create the ticket

automatically create ticket

Make a client script