Github changes not being detected

Hi,

 

My company has a subscription to Jira cloud at https://smashingboxes.atlassian.net As part of that setup, we have a Github integration, which is supposed to pick up smart commit messages, and display commits, branches, and pull requests, as well as trigger transitions on our boards. For some projects/git repos, this is working great. However, recently a few of them have stopped working.

I've tried going to Admin > Applications > DVCS accounts > ... > Refresh repositories, but the repositories I'm interested in are not showing up in the list, or the autosuggest dropdown.

1 answer

1 accepted

0 vote

Hi Derek,

Can I have a screenshot of one of the commit messages that is not working and one that does?

Cheers,

Branden

Hi Branden,

 

Here is the screenshot of a working git commit: 

Screen Shot 2018-01-23 at 10.32.52 AM.png

and the automatic transition in the Jira card:

Screen Shot 2018-01-23 at 10.29.45 AM.png

 

Here is another, more recent commit, that did not have a automatic transition, or any git information in Jira:

Screen Shot 2018-01-23 at 10.30.55 AM.png

Hi Derek,

  • Does it ever show up in JIRA, e.g. it was delayed X amount of minutes?

That is odd.  It's the same project and the commits are capitalized so that rules out JSWCLOUD-15764 which deals with project keys that are not capital.

At this point I have created a ticket with our Cloud team and they will reach out to you shortly to help you resolve this as they can see the logs on the backend.  Once this does get resolved please let the Community know what the root cause and resolution were in case someone else runs into this same issue.

In the meantime please also take a look at Commits missing in Commit Tab

Diagnosis

Run the following command

Git:

git log

Mercurial:

run hg log

Check if some commits related to the issue have the correct user and email adress.

Cause

Some Commits do not have the correct email address linked, this causes JIRA to fail looking up the proper author on Bitbucket and thus does not display the commit.

A commit should look like the following:

commit aa1a1b1e11e1ca2baad8aa2aaad9aaaaedbdc07a
Author: John Doe <jdoe@example.com>
Date:   Tue Feb 19 16:20:28 2013 +0100

Resolution

All Contributors will need to properly set their .hgrc or .gitconfig, for all future issues the commits will show properly.

If that helps take a look at the To fix the commits for old issues section of the Commits missing in Commit Tab to fix the old issues.

In addition, please let the Support Engineer that contacts you via the ticket that the issue is resolved or let me know and I can pass that info along.

Cheers,

Branden

I'm not sure I understand the idea behind the quoted issue. So, all the developers who are using the app have emails set. Do they need to match up to something in Jira or Github or something? I would hope Jira would fail gracefully if it can't find an account to link.

I was contacted by Jira cloud support, and we determined the root cause. The "authorizing user" that was initially used to add the connection between Jira and Github was removed from our github organization, and thus could not access the repos anymore. I'm still working on the exact resolution, but most likely it will involve creating a new user in Github explicitly for this purpose, add it to our organization, and then use that user to make the connection to Jira.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,323 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot