atlassian / github-for-jira

Connect your code with your project management in Jira
https://github.atlassian.com
MIT License
620 stars 188 forks source link

Changing branch name prefix #1886

Open qeroll opened 1 year ago

qeroll commented 1 year ago

Hi,

I have integrated Jira with GitHub in order to create branches from Jira. However, when I use issue_type as part of the branch name it can appear only as bug/ or task/. I would like it to be bugfix for Bugs and feature for Tasks / Story.

Is that at all possible?

Ryan-Yuanqing-Jiang commented 1 year ago

Hi, thanks for using the Github-for-Jira app and reaching out to us!

Just to make sure I understand it correctly: Do you mean if it's possible to change the Jira issue's type according to the branch name prefix entered during creating branches from Jira issue?

If so, we don't currently support this functionality and it's not on our near term roadmap yet. I will keep a note of this in our future feature-requests.

Thanks!

qeroll commented 1 year ago

Hi,

I think you might have understood me correctly but just to make sure you do, I'll explain in more detail:

Is that an option or the string has to be the default which is defined in Jira?

Thanks in advance!

Ryan-Yuanqing-Jiang commented 1 year ago

Thanks for clarifying it!

At the moment we don't support this functionality yet, so it'd be a manual step to change the branch name for the time being. But I will triage this into our feature request backlog.

Cheers.

gbsmith commented 1 year ago

Second this!

Skyppid commented 1 year ago

Would be great, we use Git Workflow and need to name branches like this feature/{story-no}/{story-title} for stories and hotfix/{bug-no}/{bug-title} for bugs. Best would be feature/{story-no}/{sub-task-no}/{task-title} for nested tickets.

So a bit more flexibility when configuring the scheme would be nice!

jkoelle commented 1 year ago

Echoing what others have said. We use Git Workflow and it would be helpful for the prefix to be added to the branch name when creating from Jira so that developers don't need to do this manually each time they create a branch.

jaredtbates commented 1 year ago

Agreed, this is something our team is used to and it would save us time if we could automate the prefixing of branch names.

rudacs commented 11 months ago

I agree. The goal would be to standardize.

Vote +1

urshess-siga commented 7 months ago

I agree as well. This is the way the Bitbucket integration works, btw. feature/{story-no}/{story-title} for stories and hotfix/{bug-no}/{bug-title} for bugs. So you don't even have to "re-invent the wheel"

yribeiro-sent commented 2 months ago

This would be ideal for me and my team! +1 vote!

ArjanMeijerNOS commented 1 month ago

We also use git flow, so would be nice if this could be replicated when creating branches...

kris-skillprofile commented 1 month ago

We need this too!