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

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

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

556 views 5 20
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