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

PR event not firing

Hi All,

I'm in the process of moving source from 1 repo to a new one and we would like to have an email set when certain source files have been modified within a limited number of paths. I have successfully used the Post Hook email ScriptRunner feature to do this. IE

refChanges.any {
   (pathsMatch('glob:Source/path1/**') ||



What we would really like, however, is to apply these same conditions on PR's that get merged to our develop branch. I have tried numerous combinations of "conditions" with various events including the "PullRequestMergedEvent" and this event never seems to fire. I should mention that all PR's are created and merged within BitBucket.

I initially tried something simple like:

pathsMatch("glob:Source/path1/**", event.pullRequest.getCommits())

or even...


When none of these worked, I even tried something more basic:"refs/heads/develop")

We also tried changing the merge strategy just to see if that might be the issue but that didn't seem to matter either. For the record, we're using the "Merge commit--no-ff" merge strategy as our default. Ultimately, it seems that any attempt to send an email due to PR events isn't working.

Am I doing something wrong?


1 answer

@scott parillo did you ever figure it out? I am in the same predicament right now

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Apps for Confluence you won't want to miss: RSVP for September's Appy Hours

Calling all collaborators and Confluence users! Our Appy Hours event on September 29th features 4 presenters demoing functionality to superpower Confluence. Don't miss learning about these apps i...

115 views 0 9
Read article

Atlassian Community Events