JIRA & Bitbucket POST Hook sync

I have a Jira installation hosted on our company server. I want Jira to automatically update issues when a user commits to one of our Bitbucket repositories. I gather this should happen automatically if I have the DVCS connector plugin installed.

However, despite the documentation saying that the Bitbucket Service will be installed automatically, that doesn't appear to have happened. What is the format of the URL for the Bitbucket Service that will call the sync function on the Jira service please?

At the moment, the only time Jira updates is every 60 mins and I don't think simply changing this to poll more frequently is a sensible solution.

2 answers

1 accepted

Accepted Answer
1 vote

John, if you uncheck then recheck that repo under the "DVCS Accounts" link in Add-ons, it should re-establish the link for you. Just be sure the account has been linked with an account with permissions to do this, or auto-configured from OnDemand.

If that doesn't work, come over to JIRA or OnDemand support and we can give you a hand.

Hi Marcus, I'll give that a go shortly. However, please note that I don't use JIRA On Demand, we use the downloaded self-hosted version on our company server. There is nothing set up under Bitbucket Services at the moment. Many thanks, John

The self-hosted version should work exactly the same. The only trick is that you'll need to ensure that you've configured it properly. Also, ensure that you are running the latest version, if possible.

Relinking it fixed the problem. The act of relinking caused two Hooks to be added in Bitbucket that were not there before (POST and Pull Request POST). There's no mention of the format of either of the 2 hooks in any of your documentation that I could find when reading about the DVCS Connector. I was trying combinations of these 2 Hooks, but I couldn't guess the repo_slug correctly so the Hooks weren't right. Possibly you could consider adding a brief paragraph to the docs?

Thanks for your help, much appreciated.

You really should accept Marcus's answer as an answer (you can select multiple answers here, unlike StackOverflow).

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,618 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