Pull Request not linked to Jira Issue automatically

Viewed 1695

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?

1 Answers

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.
Related