Skip to end of banner
Go to start of banner

How to create bitbucket repository during the transition of workflow using Run CLI app.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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.

  1. Log in as a Jira Administrator.
  2. Navigate to the > Issues and under the Workflows tab, click the Edit link to modify the required workflow.
  3. Select the transition for which you want to add or edit the post function. Select the Post Functions option.
  4. Select CLI actions from the available options. Click Add.

  5. Add the Bitbucket CLI action createRepository under Action field as shown in the below screenshot.
    CLI action:

     -a createRepository --server http://example.com/ --user xxxx --password xxxx --project "PROJ" --repository "test2-repo" --name "TFJ2-repo"


  6. Click Add and Publish the workflow.
  7. 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.


  • No labels