BitBucket webhook on pull request merge

After installing the JIRA connector to Bitbucket (both cloud instances) there is a webhook in BB that triggers a workflow transition when a pull request is created. However, there is no webhook when a pull request is merged or declined. This means that transitions associated with these events are not executed.

Then I tried adding my own webhook through the UI using the same address as the existing "JIRA" webhook (https://host/rest/bitbucket/1.0/repository/webhook) which gets fired on pullrequest:rejected and pullrequest:fulfilled. The requests are sent correctly and return with 204 but there is no reaction in JIRA.

Did anyone succeed in getting this to work? It seems like a very common problem.

1 answer

When u create new own webhook to JIRA at same URL, look into Webhook log. In JIRA (readonly) there is 



But in your own webhook this method is missing.


I have some problem.


As u can see in your cusmot webhook there is repo:push AND THEN pullrequest:fulfilled. Thast why in JIRA (readonly) PR merge/decline is not working. It will be done after next repo:push OR after sync JIRA with Bitbucket (manualy, or auto). Repo:push (commit, or create PR).

I send message to support 20/01/2017.

Do u fix this problem ?


P.S. I add trigger "commit create" to triger PR Merge. In Bitbucket repo with PR merge there is merge commit. Thats why it work. Byt this is cunning, not right way.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

174 views 20 8
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