We're updating our terminology in Jira

'Issue' is changing to 'work item'. You might notice some inconsistencies while this big change takes place.

Reference work items in your development projects

Enjoy the seamless integration of work items and code when your admin has connected Jira to Bitbucket Cloud, GitHub, GitLab, or other supported developer tools.

Atlassian Government environments can connect via Github only.

Before you begin

To reference Jira work items while committing, building, and deploying code with Bitbucket, GitHub, or other supported developer tools:

  1. Find the key for the Jira work item you want to link to, for example “JRA-123”. You can find the key in several places in Jira:
    • On the board, work item keys appear at the bottom of a card.
    • On the work item’s details, keys appear in the breadcrumb navigation at the top of the page.
    Find out more about work item keys.

  2. Check out a new branch in your repo, using the key in the branch name. For example, git checkout -b JRA-123-<branch-name>.

  3. When committing changes to your branch, use the key in your commit message to link those commits to the development panel in your Jira work item. For example, git commit -m "JRA-123 <summary of commit>".

  4. When you create a pull request, use the key in the pull request title.

You need to push something to the connected repository for your tools to recognize and sync with Jira. Sometimes, it may take a few minutes for a complete sync to happen.

After you push your branch, you’ll see development information in your Jira work item.

Including the key in the title of your pull request will automatically create a link to Jira.

Not seeing anything? Make sure you’ve formatted the Jira work item key correctly using capital letters. For example, “JRA-123”, not “jra-123”.

View development information in Jira

 

To view linked development information in a Jira work item:

  1. Navigate to the work item.

  2. Under Development, select the number of pull requests, branches, or commits to see additional information.

To view linked development information on the Jira board:

  1. Navigate to your board.

  2. Check for development icons on the work item cards to see whether there are pull requests, branches, commits, or deployments linked to your work.

  3. Hover over an icon to view the details of the development activity, and click through to go to your connected development tool.

Development icons will show on your Jira board as long as:

  • At least one of the work items on your board has development data linked to it.

  • Your board contains less than 100 work items.

Development actions that affect your work items

The following actions in your development environment will link and update your work items in Jira. More actions are available if your Jira admin has enabled smart commits. Learn more about using smart commits.

Branches

Include the work item key in the branch name when you create the branch to link it to your Jira work item.

For example: git checkout -b JRA-123-<branch-name>

This works by default in connected Bitbucket, GitLab, GitHub, GitHub Enterprise, and Fisheye tools.

If you’re using Bitbucket Cloud, GitHub or GitLab, you can create a branch directly from your Jira work item. Under Development, select Create branch. If you create a branch this way, the key is automatically added to the name of the branch.

Builds

Build information works by default for connected Bamboo and Bitbucket Pipelines tools.

For Bamboo, a build is automatically linked to a work item if one of the build's commits includes the key in its commit message. The key must be included in the commit to activate this feature.

For Bitbucket Pipelines, simply include the key in the branch name. Learn more about Bitbucket Pipelines.

Commits

Include the work item key in the commit message to link the commit to your Jira work item.

For example: git commit -m "JRA-123 <commit message>"

This works by default in connected Bitbucket, GitLab, GitHub, GitHub Enterprise, and Fisheye tools.

Deployments

A deployment to an environment, such as production or testing, is linked if a commit associated with the deploy contains the key in its commit message. The key must be included in the commit to activate this feature.

This works by default in connected Bamboo and Bitbucket Pipelines tools.

Pull requests

Do at least one of the following:

  • Include the work item key in the pull request title.

  • Ensure that the source branch name also includes the key in the branch name.

  • Bitbucket Cloud only: include a commit in the pull request that has the key in the commit message (the commit cannot be a merge commit).

If you create the pull request from the development panel in a Jira work item, the key is added automatically.

Reviews

Include the key at the beginning of the review title when you create the review to link the review to your Jira work item.

For example, name your review "JRA-123 <review summary>" and start the review.

This works by default if you connect Jira to Crucible.

Still need help?

The Atlassian Community is here for you.