Creating a Bitbucket Server and Data Center project or repository from Jira
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The Bitbucket Data Center (and Server) to JIRA integration only has a feature to create a new branch from the Development panel in a Jira issue.
Sample screenshot from a JIRA issue

The integration does not provide a native way to create a new Bitbucket project or repository from Jira.
Solution
To be able to create a new Bitbucket project or repository from JIRA, Bitbucket REST APIs can be called from Jira webhooks or from plugins, such as Automation for Jira and ScriptRunner for Jira.
The Bitbucket REST APIs to call are:
POST /rest/api/1.0/projects - to create a new project
POST /rest/api/1.0/projects/{projectKey}/repos - to create a new repository for the given
projectKey
Was this helpful?