...
Using the git clone url’s clone the repository to the local using git command. Use the below command to clone.
Command: git clone <"cloneURL"> --bare
Step 3:
Using project names from the fetched response create projects with same name in Jira cloud by calling Jira cloud API. Use the below API with admin credentials to create projects in cloud.
...
Authentication: Your admin credentials
Note: Username or an account is either a team or user.
...
Authentication: Your admin credentials
Note: Workspace is UUID of the instance.
...
Using the git command push the locally cloned repositories to Jira cloud. Use the below commands to push to repo.
Commands:
git remote add origin <"CloneURL_for_Cloud">
git push --all
Note: Need to verify the commands properly