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 Capel - London 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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.