What is the difference between linking JIRA to Bitbucket and linking Bitbucket to Jira

I know the question might seem like it is asking the same thing, but bear with me.  There seems to be different ways to link the two together as the process is different, and the end result differs.  

Is there a difference between the two?  Are there any functional differences if I do it either way?

JIRA  Software (Server) 7.0
Bitbucket Cloud (1 Team, 2 Repos) 


 Linking from JIRA to Bitbucket:

Login JIRA Administration -> Applications -> DVCS accounts
Link Bitbucket Cloud or Github Account
Enter Team Account ID
Enter OAuth Key and Secret
    (Generate in Bitbucket Team -> Manage Team -> OAuth -> Add consumer)

The Result is as follows:

Both Repositories are Synced
In Bitbucket Team:
OAuth is added as a consumer
In Bitbucket for both Individual Repos:
(Settings -> Services) There are 2 services added, "POST" and "Pull Request POST" to the JIRA URL
(Settings -> Webhooks)  Nothing
(Settings -> Links) Nothing 

I would have thought that a Link would have been created back to JIRA here, but that was not the case.  

Linking from Bitbucket to JIRA:

Login Bitbucket Cloud -> Team -> Project -> Settings -> Links
Add new link to JIRA, Enter JIRA URL and Project Key
Do the same for the 2nd Repo in the team 


Nothing is changed in the JIRA, it doesn't show the link in JIRA or anywhere else.

I also have to manually link both repos to JIRA, (where as if I link it from JIRA to Bitbucket, it automatically links all the repos within the team).  

It seems like the best way to link JIRA and BB is to do it from JIRA itself ?  Any smart commits would be handled automatically to their respective JIRA project, etc ?  

Are there any functional differences to linking them one way or the other?  What are the advantages of linking them one way over the other?  What would be the best practice in linking them together?  

1 answer

Linking from Bitbucket Cloud to JIRA makes links to JIRA issues in commit messages on Bitbucket Cloud so you can refer JIRA issues in your commit messages.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,323 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot