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

How can I setup a Automation rule only for PRs matching certain criteria?

I am trying to  create an Automation rules to transition linked Jira issue(s) to `Done` when a PR is merged.

Right now since there is no additional configuration for  "PR merged" trigger, my rule is running for every PR, but for my usecase I want this rule to trigger only or PRs matching certain criteria, e.g. when PR title has some keyword. How can I accomplish this? 

1 answer

0 votes
Stuart C Community Leader Aug 17, 2020

Hi @Bharat Patel 

You can add a 'condition' 

Capture.PNG'Issue fields condition' will let you search for keywords in the summary.

Hope this helps, let me know if I've misinterpreted your question.

hi @Stuart C actually I want to define a condition based on PR title, e.g. PR title contains "#mergeit", not on JIRA issue fields. 

Stuart C Community Leader Aug 18, 2020

Ah! Sorry Bharat,

I see what you're after now.

I haven't had chance to test this myself but I wanted put it out there whilst I look into it. 

I believe you can create a webhook in Bitbucket ( and use 'merged' from the pull request triggers.

Then use that incoming webhook as a trigger in the automation rule and for the condition you can use 'advanced compare condition' to specify {{webhookData.title}} > equals > #mergeit

I'll try and test this tonight but let me know if you confirm or deny this works before I do :)

hi @Stuart C 

Thanks for your reply and that suggestion, that would have worked perfectly only if Bitbucket webhook included JIRA issues in the webhook data :) 

I can get the automation to trigger conditionally via webhook approach, but problem now is it can't find the JIRA issues to act on. 

Screen Shot 2020-08-18 at 8.52.14 AM.png



Stuart C Community Leader Aug 18, 2020

Oh man, we're so close! 😂

Suggest an answer

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

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

202 views 3 19
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