Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket Scriptrunner Listner

Hello and thank you in advance for the assistance.

I am trying to write a listener for Bitbucket repositories but i am not sure where to start or to go about it.

I am trying to write a listener to on all changes in repositories specifically MergedEvent.

I want to listen for events where a a branch is merged with another matching the condition if the pull request content files with a certain extension.

As a result send an HTTP request with the file name, repository name and other info i can get.

2 answers

Hi @Hamdy Atakora ,

If you also have ScriptRunner for Bitbucket available from the marketplace here: you can write custom Listeners, as you have described.

Here is the relevant documentation for ScriptRunner for Bitbucket:

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

0 votes
Leo Community Leader Mar 19, 2021

Hi @Hamdy Atakora,

There is a event handler comes with scriptrunner and available in Repo Settings

you can try out the logics over there, also you can utilize sample snippets available like changed file PR source branch and target branch, etc. 

Hope this helps




Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

118 views 2 4
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