we trying to create an automation rule when a PR is merged, but we want to transition the issues to DONE only when the PR were merge to the Master branch
Instead of using an automation rule, why not use a workflow trigger instead? This is what workflow triggers are intended for, to transition issues when something happens in your development tool. Have a look at Configure workflow triggers for more information.
@Hender Ruiz
This should work if the branch is called "Master".
^ You may also want to include a check that there are no other Pull requests open. You can do this using a JQL condition.
key = {{issue.key}} AND development[pullrequests].open = 0
Thanks, I'm going to test this solution and let you know!
@Mikael Sandberg I am trying to do that by using workflow trigger and adding as a validator but can't find a way to implement a logic for development[pullrequests].open = 0. Any clue
It looks like you're new here. Sign in or register to get started.