Hi,
I want to open the workitem from outside visual studio using C# code. is it possible?
I tried with this
IWorkItemDocument widoc = null; try { string tfsName = "http://rd-tfs-no2:8080/tfs/siproducts"; var projectCollectionUri = new Uri(tfsName);
var projectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(projectCollectionUri, new UICredentialsProvider());
projectCollection.EnsureAuthenticated();
DocumentService docService = (DocumentService)Package.GetGlobalService(typeof(DocumentService));
widoc = docService.GetWorkItem(projectCollection, id,this);
docService.ShowWorkItem(widoc);
}
finally
{
widoc.Release(this);
}
But help less Im getting null value for docService.
Any good suggestion?