“[Me]” variable for custom field alerts in TFS 2013

会有一股神秘感。 提交于 2019-12-24 16:42:26

问题


I added a custom field (Test Prime) in TFS. Since I wanted a drop down of valid TFS users, I copied the setup of the Assigned To control (String, Dimension, ALLOWEXISTINGVALUE, VALIDUSER, and SYNCNAMECHANGES). I want to be able to set up an alert triggered when:

Test Prime Changes to [Me] or Test Prime Changes from [Me]

but "[Me]" or "@Me" does not seem to grab the current user. It's under the drop down menu of Assigned To so I don't see why I can't get access to this variable. Is it because this is for a non-core field and [Me] is only available for core fields? If yes, is there a workaround because I haven't been able to find any.


回答1:


  1. set the syncnamechanges="true" in the custom field definition. If the workitem template cannot be uploaded, use the witadmin tool to update the syncnamechanges attribute.
  2. in the alert rule, use @@MyDisplayName@@ placeholder instead of [Me] or @Me.


来源:https://stackoverflow.com/questions/26428356/me-variable-for-custom-field-alerts-in-tfs-2013

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!