Skip to content

Commit

Permalink
PR 36: Moved Created Date edit up to before save as recommneded by th…
Browse files Browse the repository at this point in the history
…e product team +semver:patch

 - Moved Created Date edit up to before save as recommneded by the product team
  • Loading branch information
MrHinsh committed Aug 16, 2016
1 parent 2631816 commit f92438b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,15 @@ internal override void InternalExecute()

try
{
newwit.Fields["System.CreatedDate"].Value = sourceWI.Fields["System.CreatedDate"].Value;
newwit.Save();
Trace.WriteLine(string.Format("...Saved as {0}", newwit.Id));
newwit.Fields["System.CreatedDate"].Value = sourceWI.Fields["System.CreatedDate"].Value;
Trace.WriteLine(string.Format("...And Date Created Updated"));
if (sourceWI.Fields.Contains(me.ReflectedWorkItemIdFieldName))
{
sourceWI.Fields[me.ReflectedWorkItemIdFieldName].Value = targetStore.CreateReflectedWorkItemId(newwit);
}
newwit.Save();

sourceWI.Save();
Trace.WriteLine(string.Format("...and Source Updated {0}", sourceWI.Id));
}
catch (Exception ex)
{
Expand Down

0 comments on commit f92438b

Please sign in to comment.