需要以编程方式进行迭代细节 [英] Need Iteration details programmatically

查看:62
本文介绍了需要以编程方式进行迭代细节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆