none
(TFS2010) CustomControl should open another WorkItem in TeamExplorer

    Question

  • Hello,

    at the moment I try to create a custom control, which should open another workitem in the team explorer. Someone told me, that it should work with the DocumentService object, but I only can find old examples which won't work (actually I am not even getting that DocumentService object).

    Additional to opening another workitem it would be great, if I could somehow manipulate the current workitem (validate fields before saving, changing active tabs, etc.). Guess that should work with the DocumentService object, too.

    Maybe I am just missing some references or something like that. Is there a working Example for VS/TFS2010 somewhere? Or maybe another way to solve the problems I have?
    Wednesday, December 09, 2009 9:46 AM

Answers

  • Hi Feroc,

    To create a Custom WI Contrl which could open another workitem, following references are needed:

    EnvDTE(version 8.0.0.0)
    EnvDTE100(version 10.0.0.0)
    EnvDTE80(version 8.0.0.0)
    EnvDTE90(version 9.0.0.0)
    Extensibility(version 7.0.3300.0)
    Microsoft.TeamFoundation(version 10.0.0.0)
    Microsoft.TeamFoundation.Client(version 10.0.0.0)

    Microsoft.TeamFoundation.WorkItemTracking.Client(version 10.0.0.0)
    Microsoft.TeamFoundation.WorkItemTracking.Control(version 10.0.0.0)
    Microsoft.VisualStudio.TeamFoundation(version 10.0.0.0)
    Microsoft.VisualStudio.TeamFoundation.WorkItemTracking(version 10.0.0.0)


    Interface IWorkItemControl has a method void IWorkItemControl.SetSite(IServiceProvider serviceProvider)  in the serviceProvider we can get the service we want.

    For detail code, please refer to this article How custom wit control Open another work item in Team Explorer

    Best Regards,
    Ruiz


    Ruiz Yi MSDN Subscriber Support in Forum If you have any feedback on our support, please contact msdnmg @ microsoft.com Best regards, Ruiz
    • Marked as answer by Feroc Thursday, December 10, 2009 11:01 AM
    Thursday, December 10, 2009 9:02 AM
    Moderator

All replies

  • Hi Feroc,

    To create a Custom WI Contrl which could open another workitem, following references are needed:

    EnvDTE(version 8.0.0.0)
    EnvDTE100(version 10.0.0.0)
    EnvDTE80(version 8.0.0.0)
    EnvDTE90(version 9.0.0.0)
    Extensibility(version 7.0.3300.0)
    Microsoft.TeamFoundation(version 10.0.0.0)
    Microsoft.TeamFoundation.Client(version 10.0.0.0)

    Microsoft.TeamFoundation.WorkItemTracking.Client(version 10.0.0.0)
    Microsoft.TeamFoundation.WorkItemTracking.Control(version 10.0.0.0)
    Microsoft.VisualStudio.TeamFoundation(version 10.0.0.0)
    Microsoft.VisualStudio.TeamFoundation.WorkItemTracking(version 10.0.0.0)


    Interface IWorkItemControl has a method void IWorkItemControl.SetSite(IServiceProvider serviceProvider)  in the serviceProvider we can get the service we want.

    For detail code, please refer to this article How custom wit control Open another work item in Team Explorer

    Best Regards,
    Ruiz


    Ruiz Yi MSDN Subscriber Support in Forum If you have any feedback on our support, please contact msdnmg @ microsoft.com Best regards, Ruiz
    • Marked as answer by Feroc Thursday, December 10, 2009 11:01 AM
    Thursday, December 10, 2009 9:02 AM
    Moderator
  • Thanks a lot. Works perfectly...
    Thursday, December 10, 2009 11:01 AM