This article explains how to create bitbucket repo during the transition of a workflow using Run CLI Actions in Jira.
...
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.
- Log in as a Jira Administrator.
- Navigate to the > Issues and under the Workflows tab, click the Edit link to modify the required workflow.
- Select the transition for which you want to add or edit the post function. Select the Post Functions option.
- Select CLI actions from the available options. Click Add.
Add the Bitbucket CLI action createRepository under Action field as shown in the below screenshot.
CLI action:Code Block theme Midnight -a createRepository --server http://example.com/ --user xxxx --password xxxx --project "PROJ" --repository "test2-repo" --name "TFJ2-repo"
- Click Add and Publish the workflow.
- Create an issue. Now perform the transition on the issue to which post-function has been added. It will create the repository in the Bitbucket.
Info |
---|