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

1 vote

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

0 votes

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
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

78 views 0 3
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