This script should complete the task: https://github.com/vbabiy/bitbucket_issue_migration
However, it is recommended that you go through the code in a script and make sure that it is exactly what you need, or run the script in a test repo before you perform the migration.
source
share