Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

pathsMatchExcludingDeletes() is applicable for argument types: String


Am working for a script in order to restrict pushing changes to a particular folder for a specific team.

It was a straight forward script available online.


import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.bitbucket.auth.AuthenticationContext
import com.atlassian.bitbucket.user.UserService

def userService = ComponentLocator.getComponent(UserService)
def authContext = ComponentLocator.getComponent(AuthenticationContext)

if (pathsMatchExcludingDeletes("glob:UserGUI/src/localizationsnapshot/**")) {
// return true if the user is NOT in the desired group, thus blocking the push
return ! userService.isUserInGroup(authContext.getCurrentUser(), "!Team Core FTE")
return false


However, i kept getting below error and there is no much help available to resolve it. 


Time (on server): Fri May 28 2021 15:53:55 GMT-0400 (Eastern Daylight Time)

The following log information was produced by this execution. Use statements"...") to record logging information.

2021-05-28 14:53:55,467 ERROR [c.o.s.b.ScriptedPreReceiveGlobalHook]: *************************************************************************************
2021-05-28 14:53:55,482 ERROR [c.o.s.b.ScriptedPreReceiveGlobalHook]: Script pre-receive hook failed: repository: jasontest, file: <inline script>
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.pathsMatchExcludingDeletes() is applicable for argument types: (String) values: [glob:UserGUI/src/localizationsnapshot/**]


Let me know in case of any inputs in this regard.


1 answer

Hi @Pavan_Nayakanti ,

Please can you confirm which version of Bitbucket and ScriptRunner for Bitbucket you are using and I will look further into this for you.

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

What version of ScriptRunner are we using? - 5.6.2
What version of Bitbucket are we using? - 5.15.1

Hi @Pavan_Nayakanti ,

Thank you for your response.

We no longer support those versions of Bitbucket or ScriptRunner for Bitbucket.

Is it possible for you to first upgrade to a supported version of Bitbucket and ScriptRunner for Bitbucket?

We support versions of Bitbucket, as listed on Atlassian's End of Life policy here:

And again support the compatible versions of ScriptRunner for Bitbucket.

If you first upgrade to a supported version of Bitbucket and ScriptRunner for Bitbucket, and you still get the same error, you could then raise a support ticket with our Support Team.

Please let me know if updating both Bitbucket and ScriptRunner for Bitbucket is possible for you?

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

345 views 2 10
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