Git, Bitbucket, CI/CD tools integration
Topics
Overview
The features below allow a user to take a helicopter and detailed views on commits, branches and pull requests which were created for package or version.
The features will be only available if a Jira instance is integrated with Bitbucket, GitHub (Hosted and Enterprise) and GitLab (Cloud and OnPrem). Otherwise, no data will be presented.
Please read details about the integration of Jira with
Bitbucket and GitHub here: https://confluence.atlassian.com/adminjiraserver/linking-a-bitbucket-or-github-repository-with-jira-938846899.html
GitLab (OnPrem) will require some additional configuration please navigate to Annex A at the bottom of the page.
Code view
Code view could be enabled from the Issues tab on package or version details screen.
Enabled code view:
If the Code view enabled the user can’t configure columns anymore. The columns set is predefined.
In the code changes column the user can see:
Number of branches which are created for a particular Jira issue
Quantity of commits
Amount of pull requests and their statuses
In case more than one page of issues lists are available, sorting by Code change column will only work for the current page and will not take data from other pages, in contrast to sorting by any other column in the table.
Such limitation is dictated by technical aspects of code changes data fetching.
After a click at branches, commits or pull requests a user can see a screen with detailed information about each entity:
Branches
Commits
Pull requests
User can navigate from the details screen to the repository to check the details like changes in the code, code review, etc
Information about builds and environment will not be available in the current version of the release management.
Please create a feature request if you miss this information.
Â
Commits
Commits tab is available on version and package levels.
On the tab, the user can see all commits which belong to version or all versions in the package sorted from newest to oldest.
In order to receive commits data click “Fetch data“ button. Data loading might take some time. The user will see a data loading progress bar.
Â
Â
User can navigate to the repository to see the commit details and changes in particular files.
Annex A: GitLab (OnPrem) integration
The following instruction can help you to overcome the issue with GitLab integration.
There’s no official integration between Jira and GitLab (OnPrem) at the moment. Good news there is some unofficial workaround for DVCS account to work out of the box. Please follow the steps below:
You need to upgrade GitLab version to 13.4.3. (We tested on:Â GitLab Community Edition 13.4.3)
Configure connector from GitLab side
Navigate to Jira and do the configuration of DVCSÂ account according to the following instructions:
Click add and receive an error from GitLab side:)
Amend the URL which was used for redirect to GitLab:
Replace repo to api as showed below and press Enter
As result, the configuration will be completed
Please leave a ticket with our support team if you have any difficulties with this workaround and we would be happy to advise.