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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

How to create comment or tasks in pull requests with Scriptrunner from Bitbucket v5.9.0?

I'd like to create tasks when a pull request is created via the Custom Event Handler feature from Bitbucket Scriptrunner, but I couldn't manage to find how to do it so far. I did find solutions on this website but they seem not to apply in v5.9.0, for example this one:


Even after replacing




and after importing the right interface, since I noticed the function switched interface between versions (, it didn't work, I got the following message in the logs:

groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy454.addComment() is applicable for argument types: (Integer, Long, String) values

The solutions I found on other questions got the same fate, and I'm still unable to automatically create tasks or even comments right now.


Any solution? Thanks a lot in advance.


1 answer

Hi @rlandes ,

Using ScriptRunner for Bitbucket, you can also add tasks to Pull Requests using a built-in script. Here is the documentation:

Does this help? Or do you need something more custom?

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events