You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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?
You can add a 'condition'
'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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 (https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/) 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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Thanks
-Bharat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.