我想将某些交易限制为特定用户。具体来说,我只想启用特定组用户(管理员\贡献者)来启用 WIT TRANSITION “A” to “B”。
我尝试按照这些说明进行操作。但是,当我尝试加载新的 WIT 时,会产生以下错误:
Error importing work item type definition:
The 'for' attribute is invalid - The value '[Project Name]Project Administrators' is invalid according to its datatype 'http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typelib:IdentityName'- The Pattern constraint failed.
我的 WITD XML 如下:
<TRANSITION from="Integrated" to="Closed" for="[Project Name]Project Administrators">
<REASONS>
<DEFAULTREASON value="Verified Pass" />
</REASONS>
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<SERVERDEFAULT from="clock" />
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<ALLOWEXISTINGVALUE />
<COPY from="currentuser" />
<VALIDUSER />
</FIELD>
</FIELDS>
</TRANSITION>