github-for-jira icon indicating copy to clipboard operation
github-for-jira copied to clipboard

User info is not being correctly shown in Jira when merging - is this possible?

Open leighgallagher opened this issue 1 year ago • 13 comments

I am looking to see if there is a way to show the user who merged into the Jira ticket. As you can see in the image below, the Author is shown as 'User' - is there a way around this?

image-20230102-090042

leighgallagher avatar Jan 02 '23 13:01 leighgallagher

Hi @leighgallagher , can you please check if this user's GitHub account is the same as his/her Jira's account? Due to a recent internal change, Jira now shows the user information only if the user's GitHub email is the same as his/her Atlassian email. This has been well explained in the FAQ section.

krazziekay avatar Jan 02 '23 22:01 krazziekay

Hey folks What if the email address matches and it's still not shown anymore?

roufi3 avatar Jan 10 '23 11:01 roufi3

As best as I can tell the only matches that are currently showing up are when a user's github handle / username matches the email username e.g. my github handle is birdsarah my jira email address is not [email protected].

My jira email address (authentication is by SSO) is in my github profile though, and is currently set to my primary email address.

I have tried various combinations on Github of making it my default address, making it public, and putting it in a github commit message. None of these seem to work.

Can the FAQ section you linked add more specificity than "the email address associated with your GitHub account should match the address in your Jira account"?

The github settings where I see options are

  • https://github.com/settings/profile (set a public email address)
  • https://github.com/settings/emails (add multiple emails, set a primary email address, set other options for email)

birdsarah avatar Jan 12 '23 06:01 birdsarah

I agree with @birdsarah that this new seemingly arbitrary requirement is very confusing and frustrating to a user. My Github account has two email addresses associated with it at https://github.com/settings/emails, and one of them is the exact same email address as my Atlasian email. However, regardless of whether or not that email is set as my "primary" Github email, I no longer see the Github user info in Jira.

I can see other commit and pull request details in Jira so the accounts are obviously connected. Showing the user information should "just work" as it previously did as long as the accounts are properly connected. The new matching email address requirement is too brittle and arbitrary and not working correctly.

RichardDavies avatar Jan 12 '23 16:01 RichardDavies

I dug into this a bit more. To get my avatar and name to correctly show in Jira, I need to make my Jira email and my public email address on github match. This does not backfill past information but new PRs that are opened will now correctly have my avatar.

The octokit library that github-for-jira uses, provides https://octokit.github.io/rest.js/v19#users-list-emails-for-authenticated-user which could be used for non-public email address matching if github-for-jira has the user:email scope.

birdsarah avatar Jan 13 '23 05:01 birdsarah

We'd also find it useful if this worked for every email and not just the public email.

tjlytle avatar Jan 13 '23 19:01 tjlytle

Hey all. Unfortunately, this regression is the result of a upstream team changing the way they store data. A team mate of mine is working on a doc to outline what can be done to remediate this via your GH settings, until we find a longer-term strategy.

I'll send the link through once it's ready.

rachellerathbone avatar Jan 17 '23 04:01 rachellerathbone

Our SUPPORT docs have been updated with more info and a temporary workaround https://github.com/atlassian/github-for-jira/blob/main/SUPPORT.md#unmapped-users Unfortunately, this is not the most ideal solution but it is the best we can do at this point in time. We're trying to coordinate with the team that made the changes to see if there is a way to return this functionality for all users.

rachellerathbone avatar Jan 18 '23 23:01 rachellerathbone

This is a pretty annoying issue, as not everyone can just set their email address to be their public Github address. Also, the integration is using some old profile picture (~10+ years old) from who knows where. Its not picking up the GIthub profile picture at all. In another issue i read that this uses the Gravatar profile picture, but it appears that i do not have a gravatar account so thats also not the case.

Pretty bad issue, business whise.

JoppeDC avatar Jul 25 '23 11:07 JoppeDC

Is there any update on this? I'm facing the same issue.

It is pretty anoying and we can't just ask all the devs to change their github public email.

what if there was a field in the users profile for github username and you guys could use that as a match?

augustnmonteiro avatar Sep 25 '23 20:09 augustnmonteiro

This issue also affects my team badly. It's been almost a years since this issue was opened. Are there any news? How much longer will the fix take?

deemsk avatar Dec 20 '23 17:12 deemsk

@rachellerathbone yea, still an issue, and the shared workaround is not really even close to plausible.

@birdsarah I was intrigued by your suggestion of using the API in someway. Can you expand on that a bit?

stguitar avatar Feb 01 '24 22:02 stguitar

Any updates on this?

watk avatar Feb 08 '24 04:02 watk

At least this issue is not closed yet, but there could be done some progress @rachellerathbone. It would be best if this would be enabled also retrospectively, because it is very annoying. Could someone discuss this issue with upstream team, so it does not stuck forever...

Radek-Pysny avatar May 20 '24 05:05 Radek-Pysny