When a user opens a bug from a test case, I need to check if the test case is linked to a requirement item and if so I need to link the bug to the requirement item.
How can I know this information?
I use following piece of code:
WorkItemLinkCollection links = _workItem.WorkItemLinks;
foreach (WorkItemLink link in links)
{
}
but I don't know how to get the link type and link id.