Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,440
Community Members
 
Community Events
165
Community Groups

How to determine what pull request data changed from pull request updated webhook payload?

Edited

I'm looking at the BB cloud event payload for "pull request updated" (https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Updated.2) and am trying to figure out if there is something in the payload that provides the data on what fields actually changed?  The docs are not very specific about this, for pullrequest it just says "The updated pull request. See the Pull Request entity sample."

So in other words if someone edited the PR title or changed the target branch, how can I tell from the payload that these were the actual PR fields that got changed?  Unless I'm missing something, the webhook appears to be sending the entire pull request payload and not just the "changed" fields.

Is there something I'm missing here?

1 answer

1 accepted

0 votes
Answer accepted
Patrik S Atlassian Team Jun 07, 2022

Hello @Steve Muskiewicz ,

Thank you for reaching out to Atlassian Community!

I'm afraid that at this moment, the Pull Request Updated event will indeed send the entire pull request payload to the destination, and not just the fields that were changed. As I understand it would be great to be able to identify what fields were actually updated, I went ahead and created the below feature request : 

I would suggest you 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.

Let me know in case you have any questions.

Thank you @Steve Muskiewicz ,

Kind regards,

Patrik S

Thanks @Patrik S !  I appreciate the feature request, I will go ahead and vote for it and would encourage anyone else looking for this feature to do so as well!

Like Patrik S likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,262 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you