Guide
Sync Projects, Repositories, Branches, Pull Requests and Commits into Fibery. A common case is to link Pull Requests to real work items, like Features, User Stories, or Tasks. Thus you will see Pull Requests statuses right inside Fibery.
Setup BitBucket sync
Navigate to Templates and find Bitbucket template
Click Sync.
Authorize the Bitbucket app.
Choose what databases you want to sync from Bitbucket. Specify starting date for the sync, by default it is a month ago, but you may want to fetch all the data.
Click Sync now and wait. Bitbucket Space will appear in the sidebar and all the data should be synced eventually.
Link Pull Requests to Features (or any other Databases)
To have this connections, you have to encode Feature Id in your Merge Requests. In our team we include Feature Id into a Pull Requests name, like this:
[feature/2013] Documents ant Whiteboards collections on entity as extensions
The main idea is to extract Feature Id from Pull Request name and link Feature and Pull Request Databases via automatic rule (Auto-linking (Set Relations Automatically)). This is a two-steps process.
Step 1. Create Feature Id formula field inside Merge Request
Open any Pull Request and add a new formula, in our case formula will look like this:
Here is the formula for your convenience:
If(StartsWith(Name,"\[feature/"),Trim(ReplaceRegex(Name,"\[feature\/(\d+).+"," \1 ")),"")
Step 2. Create automatic connection between Pull Request and Feature
Inside a Pull Request create a new Relation field, set relation to Feature and set automatic rule to match any Pull Request with a Feature by Id.
As a result, you will have the list of Pull Requests inside a Feature.
FAQ
We adhere to the scheme when there is a central repository and forks of this repository from the developers. Will the plugin work correctly in this format? Will it be necessary to add each fork manually during setup?
It will work out of the box if the repositories are inside the same project. in this case, during configuration, you need to leave the Repositories field empty.
Is it possible to integrate with Bitbucket Data Center?
Please, let us know, if you need - we will considering adding that.