BitBucket and JIRA Integration

I am trying to integrate JIRA and BitBucket. I am using the guide found here

So far, I have:
-created link at repo level from bitbucket to jira to point to specific project
-added oauth key on Bitbucket
-installed dvcs connector on jira using oauth key (this installed post and post commit hooks in bitbucket repo)
-added self to group atlassian-addons-project-access within JIRA
-gave self permission "View Development Tools" in JIRA

The connector reports no errors and sees the repos. Also, links from Bitbucket to JIRA work. When branches are created from JIRA, they appear in Bitbucket and when they are deleted from Bitbucket they disappear from JIRA. All good.

Unfortunately, commits made in Bitbucket are not appearing in the JIRA development panel (even though links from Bitbucket to JIRA work). I've dug through numerous guides in an attempt to diagnose the problem but haven't had any success. Any suggestions?

2 answers

When looking at an issue, you will likely see a "Development" section on the sidebar with a link to "Create Branch" if the integration was successful. When you click to create a branch, the branch name auto-populates with a git-friendly branch name corresponding to the issue key and summary. If you manually create the branch, you might want to try including the issue key in the branch name, which may afford you more success than referencing the issues in the commit descriptions. Unfortunately we've since switched to GitHub since using Bitbucket so I cannot go back and check whether a branch created without the issue key in the name will still link to the issue, but our convention was to always include the key in branch names anyway.

0 vote
Ignacio Pulgar Community Champion Nov 05, 2015

Have you tried including the JIRA's issue key on the commit's description?

[MYKEY-17] Fix for the FTP bug

I have done commits that include the following in the commit message: 1) host-777 2) HOST-777 3) #host-777 4) [host-777] 5) [HOST-777] In each instance, the link from Bitbucket to JIRA works but the commits do not appear in the development panel in JIRA. I certainly haven't ruled out the possibility that the formatting of the message is incorrect but I'm not sure what else to try. The problem I'm having, this being a cloud instance, is debugging where I've gone wrong. Are the post commit hooks that JIRA added to Bitbucket faulty in some way? Where I go to the DVCS accounts page everything seems to be linking fine. Are my permissions incorrect in some way? As far as I can tell, I have the needed permissions to view the commits. Bah.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 2 hours ago in Stride

New Statuspage App for Stride

It takes a village to identify, fix, and communicate about incidents. While developers and SREs work hard to get things up and running, support and marketing teams communicate with customers. Yet whe...

15 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you