VCS YouTrack User does not match GitHub user
Answered
VCS is working fine for my projects and hooked in correctly. The commands in my commit messages are recognized, but are not executed due to my YouTrack Account not recognizing my GitHub Account. I did try to add my GitHub account in "VCS user names" but that had no effect on the error message.
- I have gone into
"User Profile" > "Change login, password, avatar & contact data" > "VCS user names"
In here a set a new line for each variant of my GitHub account.
- Under "VCS user names" I have set my GitHub username, email, and Display name but Keep getting the message:
"Could not resolve YouTrack user. Could not find YouTrack user that matches GitHub user." - When I try to run a common on my commit to change the state of my task (#CODE-123 Done"). The VCS is links fine to my project and I see all commits when I enter hash then ticket ID in my commits, but the command fail, because of the above error. Anyone have insight as to what I'm missing here?
Thanks in advance for any insight into this issue. Been pulling my hair out on this.
Please sign in to leave a comment.
Could you please check, if there is more than one user with the same e-mail in your YouTrack?
Thanks for the tip, here's what I see.
a) matching the email accounts seem to work in removing the "Could not resolve YouTrack User..." alert.
b) But this raises the question of why "VCS user names" (noted in the original post) did not link my GitHub User account with my YouTrack account. There will be other folks in my organization that will not have matching emails for YouTrack and GitHub.
c) Even though there no more alert. The command "DONE", did not change the "Sate" of my task. Note there is a state called "Done" in the dropdown. There is no error message or alert to indicate whey this command did not work. See screenshot.
Thanks again
UPDATE:
When I went to https://github.com/settings/emails and "Add email address" added my YouTrack email to GitHub, then confirmed my email (GitHub Confirmation for this new email), it seemed to work as expected.
What still confused me is the purpose: "User Profile" > "Change login, password, avatar & contact data" > "VCS user names". Can you let me know what this is for if not to link my GitHub Username to my account?
Hello,
VCS user names are for GitHub Auth module, so you can login with your GitHub credentials.
Is there documentation on this (GitHub Auth module)? I set in my usernames but not sure how to use this or what added (if any) features this would provide outside hooking the project to the GitHub repositories.
Note all is working as expected now, just trying to build an understanding of this feature.
Thanks!
Please see the following article: https://www.jetbrains.com/help/youtrack/standalone/2017.2/GitHub-Authentication-Module.html .