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

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,467,081
Community Members
 
Community Events
176
Community Groups

Custom listener Scriptrunner Bitbucekt

Edited

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.

1 answer

Hi @Hamdy Atakora ,

Have you already seen ScriptRunner for Bitbucket's documentation on Custom Listeners, which can be found here: https://docs.adaptavist.com/sr4bib/6.24.0/features/listeners/custom-listeners

We also have a custom Script Console script in our Library which shows how to make HTTP requests, which you might also find useful: https://library.adaptavist.com/entity/using-external-apis-in-sr

Does this help you get started with the custom listener you are trying to write? Or do you require more help?

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

A little too late in replying here but nonetheless . Thank you. We went wit a different approach .  Appreciate it.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events