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

2019-08-02 19:22发布

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条回答
Luminary・发光体
2楼-- · 2019-08-02 20:13
  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.
查看更多
登录 后发表回答