我正在尝试在特定的工作空间中创建一个里程碑。里程碑是在不同的工作空间中创建的。
这是代码片段
m["Name"] = "xx";
m["TargetDate"] = "2017-06-01";
result = restApi.Create(workspaceRef, "Milestone", m);
if(result.Success)
{
LogWriter.LogWrite(string.Format("The specific milestone {0} has been created!", name));
m = restApi.GetByReference(result.Reference, "FormattedID");
LogWriter.LogWrite(string.Format("The specific milestone has been created with formattedId {0}", m["FormattedID"]));
Console.WriteLine(m["FormattedID"]);
}
else
{
LogWriter.LogWrite(string.Format("Error creating milestone {0}, Exception: {1}", name, result.Errors[0].ToString()));
}
关于为什么会发生这种情况的任何想法或见解?
谢谢, 瓦桑蒂