查询自定义工作项字段的语法
我正在使用事件订阅工具,它位于 bissubscribe.exe 工具之上来创建一些自定义警报。我需要查询一些自定义工作项字段,但我不确定如何在代码中引用它们。
以下是您引用系统字段的方式(这有效):
CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue" =
'Daniel, Jim'
这是我尝试引用自定义字段的方式(这不起作用):
"CoreFields/StringFields/Field[ReferenceName='ProductBacklogItem.CustomField.1']/NewValue"
= '400'
我引用自定义字段是否错误?我找不到如何引用它的文档。我想知道自定义字段是否位于“CoreFields...”下 - 看起来不像,但我不知道它们会在哪里。
感谢您的帮助
I am using the Event Subscription Tool, which sits on top of the bissubscribe.exe tool to create some custom alerts. I need to query against some custom work item fields, but I'm not sure how to reference them in the code.
Here is how you reference a system field (this works):
CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue" =
'Daniel, Jim'
Here is how I'm attempting to reference a custom field (this does not work):
"CoreFields/StringFields/Field[ReferenceName='ProductBacklogItem.CustomField.1']/NewValue"
= '400'
Am I referencing the custom field wrong? I can find no documentation how to reference it. I am wondering if the custom fields live under "CoreFields..." -- doesn't seem like they would, but I don't know where they would be.
Thanks for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案。您无法通过事件中的“CoreFields”访问自定义字段。您只能访问已更改的自定义字段,并且必须按如下方式访问它:
I found the solution. You cannot access the custom fields through "CoreFields" in an event. You may only access a custom field that has changed, and you must access it like this: