...
Global templates are not automatically migrated and you are expected to migrate them by using our script to the new hosting. The process won’t take longer than 5 minutes. All templates are migrated with automation (configured with issue types or JQL).
Before you run script make sure that you migrated Jira from server to cloud: https://support.atlassian.com/migration/docs/use-jira-site-import-to-migrate-from-server-to-cloud/
...