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?

Setup:
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:

In JIRA:
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 

Results:  

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,309 views 2 7
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