自定义字段字符串类型上的唯一ID规则/条件 [英] Unique ID rule/condition on a custom field string type

查看:174
本文介绍了自定义字段字符串类型上的唯一ID规则/条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作项中有一个字符串类型的自定义字段,我想应用一个规则,任何将在其中输入的ID都是唯一的,我的意思是说,如果在此字段中输入值123,并且当我创建相同类型的另一个工作项并且如果我输入123,则不应该允许
或者提示消息"此值已经是存在,输入不同的值。

I have a custom field in a work item which is string type, I want to apply a rule that any ID which will be entered in it is Unique, I mean to say that if enter value 123 in this field and when i create another work item of the same type and if I enter 123, it should not be allowed or a message is prompted that "this value already exists, enter different value.

我如何实现它。

问候

Asif Sharif总裁eDev Technologies

Asif Sharif President eDev Technologies

推荐答案

嗨现代要求eDev Tech,

Hi Modern Requirements by eDev Tech,

感谢您在此发帖。

没有这样的规则现在可以在TFS中实现。您可以尝试创建自己的服务器端插件,以检测是否有人为工作项字段指定了重复值,之后发送电子邮件以提醒用户或直接清除提交
的工作项的值。您可以看到此链接以获取有关创建ISubscriber插件的更多信息:

There is no such rule to achieve that in TFS now. You could try to create your own server side plugin to detect if someone specify duplicate values for the work item field, after that send email to alert the users or clear the value of the work item filed directly. You could see this link for more info on creating an ISubscriber plug-in:

http://nakedalm.com/team-foundation-server-2010-event-handling-with-subscribers/

或者你可以将你的用户语音提交到以下链接,TFS产品团队正在那里听你的声音:

Or you could submit your user voice to the following link, TFS Product Team is listening to your voice there:

https://visualstudio.uservoice.com/forums/330519-team-services

最诚挚的问候

Limitxiao Gao

Limitxiao Gao


这篇关于自定义字段字符串类型上的唯一ID规则/条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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