tag:blogger.com,1999:blog-16754876.post7049124684661030775..comments2023-12-24T01:44:54.113+02:00Comments on Not So Smart Builder: How to Expose the Work Item Editor ControlDudu Shmayahttp://www.blogger.com/profile/17205013318951347855noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-16754876.post-44142152491283001822014-04-16T08:11:20.942+03:002014-04-16T08:11:20.942+03:00Hello,
Plz share the link if you had posted the e...Hello,<br /><br />Plz share the link if you had posted the example..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16754876.post-19684241225991672772007-11-26T20:30:00.000+02:002007-11-26T20:30:00.000+02:00You need to get the DTE2 object which gives you in...You need to get the DTE2 object which gives you interface to Visual Studio:<BR/>DTE2 dte2 = GetService(typeof(SDTE)) as EnvDTE80.DTE2;<BR/>Then you can use the following lines:<BR/>DocumentService service = (DocumentService)dte2.GetObject("Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.DocumentService");<BR/>WorkItemType wit = (WorkItemType)((ToolStripMenuItem)sender).Tag;<BR/>IWorkItemDocument document = service.CreateWorkItem(tfs, wit.Project.Name, wit.Name, this);<BR/>service.ShowWorkItem(document);<BR/>I'll try to post a full example when I'll have the time.<BR/>You can take a look at the sources of http://www.codeplex.com/TFSQueryExplorer.Dudu Shmayahttps://www.blogger.com/profile/17205013318951347855noreply@blogger.comtag:blogger.com,1999:blog-16754876.post-19012746780562033292007-11-26T18:31:00.000+02:002007-11-26T18:31:00.000+02:00What if I want the newly created wi to show up ins...What if I want the newly created wi to show up inside VS2005? (i.e. just like what Team Explorer does when you right-click on it and select to create a wi)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16754876.post-90415048617975694112007-08-01T18:52:00.000+03:002007-08-01T18:52:00.000+03:00VERY helpful, thank you!! This is just what I was...VERY helpful, thank you!! This is just what I was looking for. Great explaination.Noah Coadhttps://www.blogger.com/profile/17457243845455176319noreply@blogger.com