Pull requests to originally branched branch

We are currently using JIRA and Bitbucket together. In Bitbucket we have one branch (develop) set up as the default branch. The structure of our branches goes like this:

develop -> features -> tasks

Say that we are working on Feature A (branched from develop). In this case, we will create a new branch for Task 1 (branched from Feature A). When work is done on Task 1, we create a pull request (from JIRA).

I was wondering if there is any way to have the pull request automatically show Feature A as the "merge to" branch instead of develop.


1 answer

1 accepted

0 vote

Unfortunately, no. There is no "source" branch concept in git. Bitbucket server is simply using the default branch (develop in your case) and that's all you can do.

Might be a good feature request but there are complications. For example, branches can be created locally and pushed to remote. There is no way Bitbucket can track the source branch in that case!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,751 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you