If you have decided to migrate first and then upgrade the software, ensure the older software versions are (temporarily) compatible with the new server.
Requirements
The Jamf Pro Installer for the operating system of the new server which matches the version of Jamf Pro installed on the existing server
MySQL and Java installers for the operating system of the new server which match the software versions installed on the existing server