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( 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

8 votes
Accepted answer

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,091 views 4 9
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