Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira issues not coming through from Bitbucket webhook

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.
Feb 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

Thanks for your response Patrik!

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

Like Patrik S likes this

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
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Oct 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