BitBucket and JIRA Integration

Zachary Telschow November 5, 2015

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

1 vote
Anthony Atkinson August 30, 2016

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 votes
Ignacio Pulgar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2015

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

[MYKEY-17] Fix for the FTP bug
Zachary Telschow November 6, 2015

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