WIQL查询不包括“System.AssignedTo”字段 [英] WIQL Query not including “System.AssignedTo” Field

查看:112
本文介绍了WIQL查询不包括“System.AssignedTo”字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有这个WIQL,其目的是找到分配给工作项的用户。

解决方案


您好JacobAlspaw,


感谢您在此发帖。


我发现你在堆栈溢出论坛中发布了相同的帖子:


http://stackoverflow.com/questions/41882996/wiql-query-not-including-system-assignedto-field




根据链接中发布的回复Tingting,您可以尝试使用下面的代码片段来获取"AssignedTo"和"Description"字段:



foreach WorkItem
workItem
in witCollection)


{


    
控制台 。WriteLine( " AssignedTo:
{0} "
,workItem.Fields [ " Assigned To" ]。Value);


    
控制台 。WriteLine( "描述:
{0} "
,workItem.Fields [ " Description" ]。Value);


}



如果您有任何回复,请在此处发布。



最好的问候




I have this WIQL, who's purpose is to find the user assigned to the work item.

解决方案

Hi JacobAlspaw,

Thank you for posting here.

I found you have post a same thread in stack overflow forum:

http://stackoverflow.com/questions/41882996/wiql-query-not-including-system-assignedto-field

According to the reply Tingting posted in the link, you could try to use the code snippet below to get "AssignedTo" and "Description" fields:

foreach (WorkItem workItem in witCollection)

{

     Console.WriteLine("AssignedTo: {0}", workItem.Fields["Assigned To"].Value);

     Console.WriteLine("Description: {0}", workItem.Fields["Description"].Value);

}

If you have any response, please post here.

Best Regards


这篇关于WIQL查询不包括“System.AssignedTo”字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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