Jira is not updated when GIT reference is changed

Hi All,

I have Jira and Git Hub Tied together and working great.  When a Jira is referenced in Git Hub it will appear under the development tab in Jira and everyone is happy :-)   

However, one issue or lack of know how on my part is holding us back a little.    IF a Git Hub Pull request is created called "KEY-123 fix for that pesky problem", the code is fix and the request is committed.  Jira KEY-123 reflects all this.   

Then at this time It was realized OOOPs it was suppose to reference KEY-132 not KEY-123, and so we go into the request and change it to now be "KEY-132 fix for that pesky problem"

However Jira still has KEY-123 with the development tab and nothing under KEY-132.   Is there anyway to get this is to change and now be reflected under the correct JIRA?

Thank in Advance,

Robert

2 answers

This widget could not be displayed.

Robert, generally speaking, it is wiser not to change the commit message of published Git commits as it will change the history and people who cloned your commit will have difficulties...

Even GitHub suggests avoiding that for a good reason: https://help.github.com/articles/changing-a-commit-message/#amending-older-or-multiple-commit-messages

A better idea is reducing the chance of writing wrong issue keys to the commit message. (We are doing this and built a JIRA app for this.) Our Commit Policy app implements this and other checks on your commits: https://marketplace.atlassian.com/plugins/com.midori.jira.plugin.jira-commit-policy-plugin/server/overview

This widget could not be displayed.

Robert, I saw you upvoted the answer, but if you think that the GitHub advice is correct, you should hit the checkmark at the answer, so that other users will see that.

Yes I up-voted the answer as the answer was clear and concise.  However, I only click it as answered when the answer is actually what we need.   The problem is that Jira does not point to the correct GIT record.    Your solution was not to put the wrong one in there in the first place, which really doesn't help as the wrong one has already been placed there.  So our problem is still a problem.  I do appreciate the time and effort to help me though.  I truly do.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

573 views 25 15
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