Smart Commits from Github aren't working

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

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.

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.

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

713 views 6 13
Read article

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