Wrong stash project when creating branches from Jira

Hi,

We have a stash project for each JIRA project.

Both projects have app links (https://confluence.atlassian.com/display/JIRA060/Adding+Project+Links+between+Applications)

I suppose when I go to some JIRA issue and click on "create branch" I should be suggested to create a branch in the proper stash project (set on project link), but JIRA always direct me to the last stash project where I have created my last branch.

because of that, some users have created branches in wrong stash projects.

 

How can I avoid that?

Is it possible to restrict to create branches in a wrong project?

2 answers

1 accepted

Hi,

There is an issue for this already: https://jira.atlassian.com/browse/JRA-39322.

Until this is naively supported by Stash, you could try our new (and free) Stash add-on Create Branch Repository Selector which selects the Stash repository for the JIRA project in the create branch dialog when coming from JIRA. The mapping between a JIRA project and a Stash repository is implemented by scanning the commit messages for JIRA issue keys. It takes the repository which has been tagged the most with JIRA issue key's for the JIRA project the user would like to create a branch for.

Hope this helps.

Kind regards,

Michael

I believe recent JIRA and Stash versions don't use project specific links. The suggested project is just what JIRA remembered as what the user used last time.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,258 views 26 12
Join discussion

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