Automatically creating a Jira ticket when a GitLab merge request is created

Josh Busch June 23, 2023

Is there a way to automatically create a Jira ticket when a GitLab merge request is created and then place the ticket in a specific Jira workflow status?

2 answers

1 accepted

2 votes
Answer accepted
Anthony Morais
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.
June 23, 2023

Hi @Josh Busch 

Welcome to the Atlassian Community!!!

Automation would basically look like this:

new merge.png

 

I hope it helps!

Regards,

Anthony

Josh Busch June 23, 2023

Thanks for the quick response!

I am not the most familiar with GitLab yet so I am not sure, but would "Pull Request Merged" also trigger when a Merge Request is initially created on the gitlab side of things? 

To try to be as specific as possible, we are looking for when a Merge Request is created the ticket goes to “Ready in Review” status and when a Merge Request is merged it goes to the “Approved” status. Is this even possible?

Thanks,

Joshua

Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 25, 2023

Hi @Josh Busch ,

Adding to @Anthony Morais 's answer, these are the list of triggers available:image.png
You can create 2 automation rules, one for "Pull request Created" and another for "Pull request merged" and based off those you can change the status accordingly.

Greg Mueller April 17, 2024

What exactly does "pull request merged" even mean?  How can you merge a request?  Isnt it the branch that is merged?

Greg Mueller April 17, 2024

@Josh Busch We are trying to do the same thing but for some reason, there was no merge request trigger, so nothing to automate the ticket's movement to review status.  Did you ever find a workaround for that?

0 votes
Anthony Morais
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.
July 12, 2023

Hi @Josh Busch 

 

Was automation helpful?

Could you mark it as an accepted answer?

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events