Jira issues not coming through from Bitbucket webhook

Joy Paul
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2023

I am using Jira Automation to automatically move a ticket to a certain state (Code review Completed) when a PR is approved in BitBucket. I have generated a webhook in BitBucket with PR Approved as a trigger. This hook is then used in Jira Automation to move the issue to Code Review Completed state. However, when the PR approved event is triggered, no Issues object is getting passed from the hook and hence Jira Automation is throwing an error - "No issues from the webhook". Can someone help?

3 answers

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 16, 2023

Hello @Joy Paul ,

Welcome to Atlassian Community!

I'm afraid that currently, the Pull Request:Approved webhook JSON payload does not contain a specific issues object to be interpreted by the Jira automation. The issue key is only returned in the title of the PR, in case was included there, but Jira won't really look for that field. 

I went ahead and created a feature request to include the issues object on the Pull Request webhook payload, which you can find in the following link : 

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind.

While this feature is not implemented, we have Automations developed for other Pull Request events, such as Created, Merged or Declined. These can be found directly in the Jira automation page and do not require you to manually configure a bitbucket webhook : 

Screenshot 2023-02-16 at 5.09.37 PM.png

Hope that helps!

Thank you, @Joy Paul !

Patrik S

Joy Paul
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 16, 2023

Thanks for your response Patrik!

Yes, I have already implemented all other PR events, except Approved :)

Like Patrik S likes this
1 vote
Yuval Ginat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 21, 2023

Hey @Patrik S ,  I can suggest a different approach as I am also facing this exact issue.

You can bring up another web service as "middleware" between the Bitbucket trigger and JIRA automation. For example some simple flask server.

In this middleware API (that you triggered from the pull request event) you can process the body of the request into a format that JIRA automation can handle and send it to the the automation rule to trigger a status change for the issue (or any other action supported there).

Hope this helps!

0 votes
Diana_Architect_ZigiWave
Atlassian Partner
October 26, 2023

@Joy Paul hi, did you resolve your issue? Yuval's approach should work. There is also another option, if you're willing to explore the 3rd party tools at the Atlassian marketplace - check out ZigiOps. It might be helpful.

 

BR, Diana

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events