Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create an automation rule to move issues to done when merge PR to a master branch (github)

Hender Ruiz December 3, 2020

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

2 answers

3 votes
Tom Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2020

@Hender Ruiz 

This should work if the branch is called "Master". 

Screenshot 2020-12-04 094451.png

Tom Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2020

^ 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

Hender Ruiz December 4, 2020

Thanks, I'm going to test this solution and let you know!

0 votes
Mikael Sandberg
Community Champion
December 3, 2020

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.

Nesar Khadem
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 31, 2024

@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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events