The management profile will stay on the device even if you switch it in ASM, which would then leave you unable to send any commands to the device. There are two ways you can go about this (that I know of):
- If you haven't already switched management of the iPads, you can send an erase command from JAMF. Once erased, DO NOT continue through set up. Then migrate iPads to the new management in ISM, set up ADE and other settings in Intune as needed, and go back to set up the devices.
- Switch management in ASM for all of the iPads and use Apple Configurator 2 to Restore (erase and reinstall) the iPads through a MacBook. Continue with setting up the iPads once ADE and other settings in Intune have been configured.
Releasing from the org will be a huge pain in the butt and should not be done unless the device is being sold / recycled / disposed.