Auto-increment Ticket ID

Go to Customize Form and select the HD Ticket DocType, and then go to the Naming Series section.

https://frappeframework.com/docs/user/en/basics/doctypes/naming