Search code examples
c#tfstfs-sdk

adding a hyperlink to a workitem (not a link to another workitem)


How can I go about adding a hyperlink (not a link to another workitem) to a workitem in TFS (using the API)?


Solution

  • Hyperlink hl = new Hyperlink("http://microsoft.com");
    hl.Comment = "Microsoft";
    
    workItem.Links.Add(hl);
    

    Reference