-
Bug
-
Resolution: Resolved Locally
-
Medium (View bug fix roadmap)
-
None
-
None
-
OnDemand Jira Agile, and normal (ie not OnDemand) BitBucket
We use Jira Agile OnDemand and have BitBucket repos.
We use Smart commits in our Commit comments, eg
MYISSUE-5 #comment This is a comment #time 1h
In the last week or so I have noticed that Jira Agile is no longer applying #time references in the commit messages, hence not applying any Worklogs to and Jira issues (see attached image)
This is affecting our timesheet tracking and worklogs.
What is the problem?
As suggested in the git eBook here (http://git-scm.com/book/ch6-4.html)
I have changed the Author & Committer for all commits on the affected repo to match my Jira user email address as follows:
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "my.first.email@address.com" ];
then
GIT_AUTHOR_NAME="My Name";
GIT_AUTHOR_EMAIL="my.correct.email@address.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
This fixed the problem
P.S. - don't forget to PUSH back to the repo after you've run the above!