Can a Task have an automatic assigned ID number?

All - Auto Project ID and Task IDs are indeed much needed, but Tasks DO have a unique number within Asana. It is long, probably not formatted the way you want or need it but it does exist nonetheless.

Check the URL of each of your task and you will identify the task number. It can be helpful as a workaround. You can use it in any custom fields if this can help.