It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

auto-populate ticket id on commit

Mike Hedman Jul 08, 2014

So, I maybe just a bit crazy here. But it seems wierd that I have to put the ticket number in the commit notes, for a branch that was created against the ticket.

We have a number of developers all over the world, and we are struggling with people having typos with their ticket number when the write commit notes. They either typo the wrong number, and now that commit is nearly forever (ie, difficult to move back) associated with the wrong ticket. Or they type in a wrong ticket number that doesn't exist. Welcome la la land.

Are there any pluggins or setup configurations that would auto-associate to the ticket it was branched from when a commit with no ticket number is listed? Then I can tell the devs, only when you specifically want to associated a commit with a ticket that it wasn't branched from, you type in the ticket.

4 answers

0 votes
Seth Jul 08, 2014

SourceTree seems like an irrelevant tag here. Ticket-commit associations don't occur in Git/Hg, they occur in the various ticketing systems out there. What are you using on that end?

0 votes
Mike Hedman Jul 08, 2014

we use jira and stash. I probably do have the wrong tag associated with it. And we use sourcetree to do commits.

0 votes
Seth Jul 08, 2014

Ok, I fixed the tags. Hopefully someone familiar with Jira and/or Stash knows about an alternative way to associate tickets with commits.

0 votes
Mike Hedman Jul 08, 2014

And we are using sourcetree to do the checkins. For me, the big issue is that if someone fat fingers the ticket number, and puts their commit against my ticket, and then has a code review pending, my ticket can't move forward until that code review is completed. We haven't found a good way to "move" commits around if they get pushed under the wrong ticket.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

2,045 views 6 15
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you