Jira Issue Page

If the Git add-on is configured and licensed successfully, new tabs are added to each Jira issue.

Git Roll Up

Open an issue then go to the Git Roll Up tab to view commit statistics, diffs and related issues.

Git Roll Up tab - showing commit information, aggregated lines by developers and files added/deleted

The Summary page shows statistical information of the first and last revision of the commits and the time since the last commit was made.  A summary of the files, lines and the developers who made the changes in this range of commits are also displayed.

Starting v2.9.9 of the Git add-on, the git commit compare function (Repository Browser - Compare) is added into this tab:

  • To view a compare result, set the base: and the compare: dropdown selectors with different values.
  • The repository dropdown allows switching of context between repositories.
  • To swap the base and the compare selection, click .
  • To open the context of the Git Roll Up issue tab to the Compare page in a new browser tab, click send to compare icon.
  • To view the code diff of the compare result, click Diff on the left panel.
  • To view the commit statistics and summary of changes, click Summary on the left panel.
  • To view list of unique Jira issues related to commits, click Issues on the left panel. Introduced v2.10.0
  • Git Roll Up tab: Issues page - showing unique Jira issues related to commits On the Issues page, clicking the View all XX issues with JQL text label will open the Search page with passed query of a list of Jira issues found based from the compare criteria.

    For example, the JQL will look like issuekey in (GIT-1851, GIT-1159, GITCL-284, GITCL-254).

As of v2.10.3 of the Git Integration for Jira add-on, the Git Roll Up issue tab will now find the best matching branch name using the Jira issue key (ex: ABC-123) to find it. For example, if you have a branch name of v2.1-ABC-123, that branch will be auto-selected when you open the Git Roll Up issue tab.

Sort the code statistics by clicking the respective Sort button then selecting the required sorting option.

Git Roll Up Sort options

Select roll up options by clicking the respective Rollup button:

Git Roll Up - RollUp options
helpful tip
To view the code diff of the file, click the corresponding  filename on the Files summary table. A dialog will appear displaying the file diff between the first and last revisions of the commit.

Git Commits

Git Commits tabs

Open an issue then go to the Git Commits tab to view commit information:

Information Description
Repository/Indexed Name of the repository (as in add-on config) and date of last synchronization with remote repo.
Author/Committer User who performed the commit. Hover the mouse pointer on the name to view user card.
Issue key This is the Jira issue with the corresponding commit message.
Repository Name This is the name of the repository the commit has been made.  Click to browse this repository via Repository Browser.
Branch Name of the Git branch.  Click to view this branch via Repository Browser.
Commit UID UID of the commit and git host link.  Click the UID to view the code diffs for this commit.  Click the git host link to view this commit via the git host server.
Files Changed List of files affected by the commit.  Click the file or git host link to view code diff of this commit.
helpful tip
View the whole commit code diff information by clicking the View full commit button to the right of the commit message.
View code diff information of the particular file by clicking the filename for each file adjacent to the rollup counter markers.

Code Syntax Highlighter

As of v2.5.5 of the Git Add-on, the code diff dialog view is improved.  The Git add-on uses the correct syntax highlighting when viewing the code diff of the file based on its file extension:

File Extension Language ID
css CSS
js Javascript
cpp C++
cs C#
sh Bash
java Java
sql SQL
py Phyton
rb Ruby
php, phtml, php3, php4, php5 PHP
html, html, xhtml, xml Markup
c, h, m, mm, pl, pm CLike
fyi
There is no language auto-detection in the diff dialog.  The detection is based on file extension.
warning
This feature will only display properly on browsers supported by Atlassian for specific versions of Jira: