Fix Jira/Bitbucket smart commit

LukeQuest August 4, 2016

We have JIRA and Bitbucket integrated. When using smart commit checkins appear under "Development" for the issue in Jira.

The problem is if I type the numbers incorrectly before pushing, the wrong task gets the source and I cannot find a way to remove that checkin from that defect and assign it to the correct defect.

Is there a way to do this or is there no way to change a mistake?

1 answer

0 votes
Yogesh Mude[Jira]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2016

Hi @Luke Geraghty

If your Bitbucket repo type was Git then you can revert the changes which you have done using git revert <commit_ID>

 

you will find git-revert article. 

LukeQuest August 4, 2016

Thanks Yogesh,

I just want to make sure you read that I pushed the changes which triggers the JIRA update (so the error becomes noticeable).

I haven't tried to modify history on the server, are you saying that doing that will also remove the commit messages from the wrong task and add them to the new one?

Wouldn't that affect other users that may have pulled?

Suggest an answer

Log in or Sign up to answer