1
我試圖在特定工作空間中創建里程碑。里程碑正在不同的工作空間中創建。在特定項目中創建里程碑時遇到困難
這裏是代碼片段
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()));
}
任何想法或見解,爲什麼這是怎麼回事?
感謝, Vasanthi