Forums

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

How to create Bitbucket pull request using Atlassian Java SDK

Jiawei Zhu May 17, 2021

Hi all!

By using the bitbucket Java APIs (eg: https://docs.atlassian.com/bitbucket-server/javadoc/4.0.0/api/reference/com/atlassian/bitbucket/pull/PullRequest.html), I am able to make commits via Bitbucket Java API based on an existing pull request in the Bitbucket server.

But I wonder if I can use the Bitbucket Java API to actually create a PullRequest? (eg: create repository, make file changes in that repository to create commit, open a pull request for that commit, and merge the pull request to the master branch.) It seems like Bitbucket API classes like PullRequest, Repository only provides getter methods. (https://docs.atlassian.com/bitbucket-server/javadoc/4.0.0/api/reference/com/atlassian/bitbucket/repository/Repository.html, eg: https://docs.atlassian.com/bitbucket-server/javadoc/4.0.0/api/reference/com/atlassian/bitbucket/pull/PullRequest.html) 

 

Any help is greatly appreciated!

Thanks!

Jiawei

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events