需要以编程方式进行迭代细节 [英] Need Iteration details programmatically
问题描述
Hi Team,
在以编程方式从VSO项目中获取所有迭代详细信息时,我们得到以下字段:
IterationId,
IterationId,
IterationaName,
IterationaName,
StartDate,
StartDate,
EndDate,
EndDate,
ParentID,
ParentID,
Path
Path
我们还需要创建日期和修改日期,但我们使用的方法无法使用它。
我们使用下面的代码:
TeamSettingsConfigurationService teamConfigService
= collection.GetService< TeamSettingsConfigurationService >();
NodeInfo []
structures = css.ListStructures(project.Uri.ToString());
NodeInfo 迭代
= structures.FirstOrDefault(n => n.StructureType.Equals( " ProjectLifecycle" ));
System.Xml。 XmlElement iterationsTree
= css.GetNodesXml( new []
{iterations.Uri}, 真 );
foreach (System.Xml。 XmlNode   ; 节点 在 项目)
foreach (System.Xml.XmlNode node in items)
{
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; g.WriteToFile(跨度> " node
- " +
node。 InnerXml);
// g.WriteToFile(" node.Attributes.Count
- " + node.Attributes.Count);
//g.WriteToFile("node.Attributes.Count - " + node.Attributes.Count);
// if
(node.Attributes.Count> 0)
//if (node.Attributes.Count > 0)
// {
//{
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; g.WriteToFile(跨度> " name
:" +
node.Attributes [ "名称" ]);
如果 (node.Attributes [ "名称" ]
!= null )
if (node.Attributes["Name"] != null)
{
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;
name = node.Attributes [ "名称" ]。值;
}
}
我们在VSO之上创建了一个应用程序,创建数据和修改日期日期
对我们的应用程序非常关键。如果还有其他任何其他内容,请您建议我们获取这些详细信息的方式 以编程方式。
We are creating one application on top of VSO, and Create data and Modified date are very critical for our application. Could you please suggest us if there is any other way to get these details programmatically.
谢谢,
Anmol
Anmol
推荐答案
Hi,
根据您的回复,您使用的是Visual Studio Team Service(VSO)。此论坛适用于本地TFS。我将帮助您将此案例移至Visual Studio Team Service 论坛
专用支持。
Base on your reply, you are using Visual Studio Team Service(VSO). This forum is for on-premises TFS. I will help you move this case to Visual Studio Team Service forum for dedicated support.
感谢您的理解。
最好的问候,
Best Regards,
婷婷
这篇关于需要以编程方式进行迭代细节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!