更新工作项字段时如何更新全局列表? [英] How to update global list when update workitem field?

查看:83
本文介绍了更新工作项字段时如何更新全局列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有几个工作项字段下拉列表 分享全局列表。有没有办法在用户将新项目输入到工作项字段下拉列表中时自动更新此全局列表,以便从
其他工作项字段下拉列表中选择它?

I have couple work item fields dropdown list that share a global list. Is there a way to update this global list automatically when user entered new item into either work item field dropdown list so that it will be available for selected from other work item field dropdown list?

最好的问候,

Andy Pham

Andy Pham

最诚挚的问候,Andy Pham

Best Regards, Andy Pham

推荐答案

嗨Andy Pham,

Hi Andy Pham,

感谢您在此发帖。

现在不支持使用默认的工作项规则。您需要创建自己的工作项控件来释放它。 TFS为您提供了一些使用C#代码编辑全局列表的API方法。以下是一个示例:
https://yangzhenrong.wordpress.com/

It doesn't support using the default workitem rules now. You need to create your own workitem control to release this. TFS has provide some API method for you edit global list using C# code. Here is an example: https://yangzhenrong.wordpress.com/

您需要在自定义控件后面添加它。要创建自定义控件,您可以参考此博客:

https://www.codeproject.com/articles/730928/close-a-work-item-only-if-child-work-items-are-c&NBSP ;. TFS还提供了一个workItem.FieldChanged事件。在此WorkItem中更新字段时会发生此事件。

You need to add this behind your custom control. To create a custom control, you could refer to this blog: https://www.codeproject.com/articles/730928/close-a-work-item-only-if-child-work-items-are-c . TFS also provide a workItem.FieldChanged event. This event occurs when a field is updated in this WorkItem.

祝你好运


这篇关于更新工作项字段时如何更新全局列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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