chiaDev
chiaDev

Reputation: 459

Pull Request not linked to Jira Issue automatically

I would like to include link my pull requests to Jira ticket automatically like this: enter image description here

I have already prepend JIRA-Id in my pull request title, same goes for the source branch name. However, it did not link. I read from some article that I may need to include JIRA-Id in my commit messages as well. But one of my previous Jira ticket, I did not do so but it managed to link. Why is that so?

Upvotes: 3

Views: 11134

Answers (3)

Fede Mika
Fede Mika

Reputation: 2261

Is it that it does not appear under the Details section as Development field?

In my case the problem was about permissions to view that field:

  1. go to Project settings -> Development tools
  2. click in Edit permissions
  3. look for View Development Tools item and make sure the proper permissions are granted, in my case I just checked "any logged user" option

After that I was able to see links to GitHub

Upvotes: 0

Gokul KKR
Gokul KKR

Reputation: 1

I will suggest to add Jira ID in PR title, then it will automatically links. ex: [RKK-<JIRA_ID>] TITLE OF THE PULL REQUEST

If that is not possible, you can try adding the Jira ID to the following:

  1. branch name
  2. commit message.

Upvotes: 0

user1373996
user1373996

Reputation:

Suggestion to have your your branch and commit message include the JIRA-ID.

E.g.

  • Branch: bugs/JIRA-001
  • Commit message: "JIRA-001: Fix something in my project"

Check if your Bitbucket already linked to your Jira:

https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-cloud/

  • Click your profile avatar > select a workspace from the Recent workspaces list or select All workspaces to display an entire list from which you can select.
  • Once you’re in your workspace, click Settings on the left sidebar menu.
  • Click Jira under Atlassian Integrations.
  • Choose the Jira Cloud instance you want to integrate with your Bitbucket Cloud workspace and click Connect.
  • Click Grant access to grant Jira Software access to your Bitbucket Cloud workspace.
  • Click Grant access to grant Bitbucket access to Jira.
  • Choose whether or not you would like to automatically sync and enable Smart Commits for all your repositories. Note: These options are selected by default. See Processing Jira issues with Smart Commits for more information. You can manage these settings later from the 'DVCS accounts' page in Jira Software.
  • Click OK.

And this is how to integrate with GitHub

https://support.atlassian.com/jira-cloud-administration/docs/integrate-with-github/

  • Install the (free) GitHub for Jira app from the Atlassian Marketplace and follow the instructions to complete the installation.
  • Select Get started to go to the GitHub configuration page (or go to Apps > Manage apps and select Configure integration in the GitHub menu).
  • Select Connect GitHub organization.
  • Find the GitHub organization you want to integrate with and select Connect, or select Install GitHub for Jira on a new organization to install the GitHub for Jira app on another GitHub organization.
  • Back on your GitHub configuration page, select Connect GitHub organization again and click Connect next to the organization you want to connect to your Jira site.

Upvotes: 1

Related Questions