Work Items, Pull Requests menu not visible in Visual Studio

24,052

Solution 1

The reason is that you just connect to the local git repository and it likes this: enter image description here

You configured Remotes (Home=>Settings=>Repository Settings=>Remotes), so you can commit and sync.

Refer to these steps to connect to the remote repository.

  1. Go to Team Explorer
  2. Click Manage connections=>Connect to Team project enter image description here
  3. After that Open Solution in Solutions section (if it is empty, you need to clone this repository) enter image description here

Solution 2

I had the same issue. It was resolved by re-connecting to the tfs-server. on VS 2017 Team Explorer go to 'Manage Connections' and 'Add Server'.

Solution 3

Steps using VS (Visual Studio) 2019:

  1. Manage Connections > Connect to a Project...
  2. Expand server, and project to find the repo you want, then
  3. If it is already cloned, "Connect" should be the default option - click it!

And why Microsoft doesn't just auto-magically do this bewilders me! I could sync and all, but no Pull-request until I jump through this little connect to the server/project/repo steps..

Solution 4

This happened to me after I upgraded Visual Studio 2017 to 15.6.2. I was able to push my changed to the server, commit, sync, etc. but for some reason when I tried to make a Pull Request, that option was not listed in Team Explorer. I searched and found this solution to help out. Still unsure why I could push/sync, but could not do a pull request since it said I was not connected to the TFS server.

Once I reconnected, the Pull Request option re-appeared and I could make my Pull Request. Hope this help others.

Share:
24,052
BrilBroeder
Author by

BrilBroeder

Updated on February 18, 2022

Comments

  • BrilBroeder
    BrilBroeder about 2 years

    I'm using VSTS and Visual Studio enterprise on two different machines (both VS2015U3 on Win10). The project has a git-repository. On one machine I do have all expected menu's (https://www.visualstudio.com/en-us/docs/connect/work-team-explorer ) on the other some (pull requests, work items) are missing. On both machines editing code and commiting/synching works fine.

    Any suggestions ?

  • BrilBroeder
    BrilBroeder over 7 years
    Repo was already cloned. But clicking on 'connect' did it. Weird behavior.
  • Mike Loux
    Mike Loux over 6 years
    Gah! I guess I've just been asking the wrong questions of "teh google" for the last several months, because every search result had me doing this weird "clone the repo, then refresh the connection list, then restart VS" which never worked. This. THIS right here finally worked. FINALLY.
  • Beytan Kurt
    Beytan Kurt almost 6 years
    If this doesn't work for you, you should check all of the below links are the same: 1. remote origin url in git config file under .git folder in your project folder 2. the url you declared in manage connections to connect 3. team explorer > settings > repository settings > git > fetch/push urls. If anyone of these are different, than connect doesn't work. I had problem at my company where we had 2 different urls directing to the same tfs server (like: oldurl:8080/tfs and newurl/tfs) and combining them ended up not letting us connect to remote like this.
  • J Brune
    J Brune over 4 years
    When I try to add a connection it only allows me to add an Azure DevOps Server. I've upgraded to the most recent release of 2019 by the way. Edit: turns out that's what they're calling TFS now.
  • Adam Cox
    Adam Cox over 4 years
    Server/service list can have a mix of TFS/on-premise based service, and Azure DevOps (cloud based) service denoted with server/hardware stack, or cloud icon, respectively. Expand these to either drill down into collections (TFS) or Projects (cloud).
  • J Brune
    J Brune over 4 years
    Adam, are you referring to VS 2019?
  • itsho
    itsho over 4 years
    This is very unintuitive. I think that if a remote is set, Visual Studio should automatically connect. Or, at least provide an indication that a connection is required.