This article explains how to create bitbucket repo during the transition of a workflow using Run CLI Actions in Jira.
Instructions
Use createRepository action to create a Bitbucket repository. You need to add this CLI action in the workflow of the Jira where you want the action to get executed based on your use case.