I forgot to add the Issue key to a commit message the other day. Is there any way to manually attach/link that commit to the issue in JIRA (as if I had included the issue key in the commit message)?
I know there are ways of changing the commit message through git, but the general rule of thumb is not to do it with commits which have already been pushed......
If this isn't currently possible, it would be a great feature to add!!
If a commit has been already "pushed" then you can't edit it (as far as I know). But JIRA DVCS connector can only sync commits which contains issue keys, but you might consider adding a commit with something like "to sync with JIRA".
All the best.
Thanks Razaq, but my goal is to get the changed code from the earlier commit to appear in the issue's comments. Unless I'm missing something, even if I perform another commit with the issue's key, the relevant code (from the earlier commit) won't appear in the issue as the new commit will not include the old changes....
Had a feeling this wouldn't be possible, but could it be considered as a new feature? It surely shouldn't be too hard to show a list of recent BitBucket commits and then link a commit - and the changed code - with a specific issue in JIRA?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would be great if you can submit a feature request in the DVCS Connector issue tracker. You might need to setup an account before you be able to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+1 On that feature request. I can try to get my devs to link during the commit but people are certainly going to forget periodically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+1 here as well. This is a real pain when you have previous commits that you want to associate with a ticket. Sometimes tickets are created after a fix is done to keep history after an emergency fix, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+1 here too.. same pain point as Justin mentioned
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+1 me too. I wrote wrong ticket number on commit and want to change ticket number
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One thing that you can do is to simply amend the commit to have the correct ticket number. Pretty simple solution / workaround.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not recommended to amend the commit message for those pushed to origin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd like to see that feature as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please, vote here for this feature.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When it happen to me, I add a link to the commit as a new comment in the Jira issue. I know it is not the best solution but I have linked the Jira issue with their corresponding commit....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+1 here as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use GIT to amend past commits. http://stackoverflow.com/questions/1186535/how-to-modify-a-specified-commit-in-git
If you just need to change the message, use this link:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use git to amend commits.
http://stackoverflow.com/questions/1186535/how-to-modify-a-specified-commit-in-git
If you just need to change the message, use this link:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Older messages have to be force pushed - in the link you provided, even, this is what they say,
We strongly discourage force pushing, since this changes the history of your repository. If you force push, people who have already cloned your repository will have to manually fix their local history. For more information, see "Recovering from upstream rebase" in the Git manual.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What Justin Greenwood said! If you screw the repo you can recover it with reflog, etc (not easy but possible), but you still can end up with bitbucket's view on the world is different from your local git repo. So really force-push is evil as it is and besides bitbucket is not always great in handling that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
... and supposing you were in a situation where you could for some reason safely force push the repo without impacting other users, are you saying that the JIRA DVCS connector for Git would 1) even notice the change, 2) update the old JIRA issue to remove the commit, and 3) update the new JIRA issue to add the commit?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It should. I haven't had any issues with amending a commit and then pushing w/o force.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
old issue, current need
+1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+1 here as well!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.