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

Jason Rider November 18, 2015

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

1 vote
Kaz November 18, 2015

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