Fix Jira/Bitbucket smart commit

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

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. 

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted 5 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

22 views 0 4
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