Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Prepending or Appending branch name in pull request title

Vivek Sharma June 7, 2023

Hi, We are using Bitbucket server v8.5.1 and our requirement is to have jira task name as part of pull request title. Hence, is there any way to prepend or append the feature branch name(e.g. feature/abcd-1234) as part of PR title. Thanks in advance.

1 answer

0 votes
Adam Ahmed June 14, 2023

It doesn't perfectly answer your question, but one thing you can do is add checks on the branch names and commit message such that they always include the related JIRA issue key. For example, you can use branch permissions to disallow creating feature branches that don't follow a pattern like `ABCD-*`).
There is also the Commit checker released in 7.16 for enforcing issue keys.

If you do that, the default PR titles will have Jira keys in the name by default.

Hope that helps!

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events