From 9aec4afe137c793437e246e33bd080c80af5aed6 Mon Sep 17 00:00:00 2001 From: Peter Lavallee Date: Wed, 23 May 2018 11:14:29 -0700 Subject: [PATCH] Add CreateRelatedLink back to the Soap Workitem Removed with commit 0e979122. Adding back here. --- src/Qwiq.Core.Soap/WorkItem.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Qwiq.Core.Soap/WorkItem.cs b/src/Qwiq.Core.Soap/WorkItem.cs index f7b92443..d1b21467 100644 --- a/src/Qwiq.Core.Soap/WorkItem.cs +++ b/src/Qwiq.Core.Soap/WorkItem.cs @@ -213,6 +213,12 @@ public override IHyperlink CreateHyperlink(string location) return ExceptionHandlingDynamicProxyFactory.Create(new Hyperlink(new Tfs.Hyperlink(location))); } + public override IRelatedLink CreateRelatedLink(int relatedWorkItemId, IWorkItemLinkTypeEnd linkTypeEnd = null) + { + var rawLinkTypeEnd = LinkTypeEndMapper.Map(_item.Store, linkTypeEnd); + return ExceptionHandlingDynamicProxyFactory.Create(new RelatedLink(new Tfs.RelatedLink(rawLinkTypeEnd, relatedWorkItemId))); + } + /// /// Validates the fields of this work item. ///