Smart Commits from Github aren't working

munsellj February 12, 2013

We have successfully linked our company github account to our JIRA on demand instance and are syncing our private repositories from github to JIRA. The commit data seems to be coming through successfully and showing up under the Commits tab in an issue, but Smart Commits are not working even though they are enabled.

I have reviewed some documentation regarding Smart Commits(https://confluence.atlassian.com/x/pBDSEQ) which mentions a couple of known limitations. We should be clear on the first limitation as all of our JIRA user accounts have a unique email address as far as I can tell.

Can someone help clarify The user's email address in GitHub/Bitbucket must match the user's email address in JIRA otherwise only the commit activity will be shown. under Known Limitations?

I have a personal github account which has access to my companies private repositories. I have both my personal email address and my company work email address set in my github account settings in the Emails section. In order to get the full use and benefit of integrating github smart commits with our JIRA OnDemand instance, does the email associated with my JIRA user account need to be the Default email on my github account or should it work as long as my JIRA user account email is one of the emails connected to my github account?

OR, does an Email in my Public Profile need to be set and need to match the email of my user account for the JIRA OnDemand instance?

I have tried updating my github account so that my work email is both the default email address for my account, and also displayed on my public profile yet Smart Commits still are not working. After a commit shows up in the commits tab(showing JIRA has synced with github and detected the commmit for that issue), the comments are not added and/or workflow changes are not made.

I also commented this question directly on the documentation page so I might also recommend responding there and/or updating the documentation to help others who may have the same questions in the future.

I appreciate any help/clarification you could provide and we look forward to using this awesome integration feature!

4 answers

1 accepted

9 votes
Answer accepted
Mark Aufflick September 17, 2013

Increasingly this is not the case that emails can be made to match. Newly hired developers or contractors have their own existing GitHub and BitBucket accounts. It is not feasible to change an existing git email address since historical commits are linked to that email address.

We really need a way to map emails in the DVCS connector - just a manual mapping table/file is all that is necessary.

3 votes
Abdulrazaq Mohammed Ali Omar
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.
February 13, 2013

Basically, your local Git client's Email address must match your JIRA Email address for smart commits to be processed. As the JIRA DVCS Connector will check the commit's Author Email to associate it with a JIRA user in order to action these smart commits. There's a documentation about this as well.

Hope this helps.

1 vote
Gleb Pereyaslavsky August 26, 2013

There should be a way to set in JIRA which email to look in commits for specific user.

This is not always so that email in JIRA and git match, then the magic is broken

0 votes
Gerad Suyderhoud December 18, 2014

Alternatively, it'd be fine to add a JIRA specific config to the ~/.gitconfig (as github does).

Suggest an answer

Log in or Sign up to answer