Jira Automation: Any way to create a pull request in GitHub when a Jira issue transitions?

Bikram Agarwal October 16, 2023

I'm currently working on an automation project whose goal is - automatically creating pull requests in GitHub when a Jira issue status transitions.

For example, say my Jira project ABCD has a story ticket ABCD-1234. Someone changes its status from "in-progress" to "qa ready". At that point, I want the Jira automation to create a pull request from feature/ABCD-1234 branch to qa branch in GitHub.

We already have GitHub for Jira installed. But only slightly related option it provides in automation is "Create branch in GitHub". 

Screenshot 2023-10-16 at 11.58.40 AM.png

Any way to make this plugin or any other to create a pull request in GitHub?

Or better yet, any way to execute a shell script in the "then" part of the Jira automation.

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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.
October 16, 2023

Hi @Bikram Agarwal -- Welcome to the Atlassian Community!

You could try using the Send Web Request action to call the GitHub REST API function to create the PR.

For more information about calling a REST API function from a rule, please see this how-to article: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events