Commit messages in our organisation are supposed to include the Jira Ref. But some dont. This means that the links we have between Jira stories and Bitbucket commits arent made. Is it possible to amend these after they have been committed and pushed to the repository event to get the links in place?
Generally speaking, it's discouraged to alter Git commits that are already published (pushed to a repo from which your team mates may have pulled those in the meanwhile).
The correct workflow is to require the issue key before the commit is created!
That means that if you try commit without entering a valid Jira issue key in the commit message, your commit should be rejected.
This supports this workflow: https://marketplace.atlassian.com/apps/1214430/better-commit-policy-for-bitbucket?hosting=server&tab=overview
Yep That is the correct course of action (Require a correct format on commit messges) and wouldn't it be wonderful if that was in place in our organisation?
Sadly it isnt and so We are where we are; with a shed load of commits that dont link back to the Jira Stories.
Reprimanding the Developers - telling them that they are very naughty doesnt fix the issue.
Sorry this doesnt fix the problem.
We need to change what has already happened.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Some more ideas:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your assistance so far. If I use option 1 above, will the Commit then automatically show up in this (Visible on the Jira Story) :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure. You should try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have and it didnt :( so the Links remain broken - Thanks anyway. There appears no way to fix this.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.