Forums

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

Create Pull Request (PR) automatically

Bartosz Wachowski December 28, 2022

Hi

How can I create a rule to create a Pull Request (PR) in the Automation part of JIRA?

I see only one option in the Bitbucket.

Screenshot 2022-12-28 at 17.15.33.png

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
December 28, 2022

Hello @Bartosz Wachowski 

There currently is not support in Automation for Jira for an action to create a pull request. You could potentially work around this using the Send Web Request action and the Bitbucket API for creating a pull request.

https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post

What is the trigger for the Automation Rule? Under what circumstances do you want to automate creating a pull request?

Bartosz Wachowski December 28, 2022

@Trudy Claspill thanks for a rapid answer. I'm just investigating possibilities, but it's not crucial. 
I want to create a flow that would create a branch and PR in another step. I know it's not that banal path, but it still thought to try it :) 

Trudy Claspill
Community Champion
December 28, 2022

If you wanted the pull request creation to happen based on the transition of an issue, you could add it to the Workflow rather than using an Automation Rule.

Bartosz Wachowski January 9, 2023

@Trudy Claspill sure. Thank you! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events