DCSIMG
VSTS Beta 2 - Web Access Not Working With SERVERDEFAULT Tag - Shai Raiten

Shai Raiten

 Subscribe

VSTS Beta 2 - Web Access Not Working With SERVERDEFAULT Tag

VSTS Beta 2 - Web Access Not Working With SERVERDEFAULT Tag

Strange problem with TFS 2010 Beta 2, it seems like SERVERDEFAULT tag is not working from Web Access 2010.

In Visual Studio when I change the Status to - Active, Resolved, Closed etc.. there is an action inside the transition that takes the Clock and CurrentUser (Comes with default template). (see below)

When performing the same action from Web I get a message that the Field (By, Date) cannot be empty.

This works fine in 2008 Web Access.

<TRANSITION from="Active" to="Closed">
          <REASONS>
            <DEFAULTREASON value="Cannot Reproduce" />
            <REASON value="Deferred" />
            <REASON value="Duplicate" />
            <REASON value="Not a Bug" />
            <REASON value="Rejected" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
              <COPY from="currentuser" />
            </FIELD>
          </FIELDS>
        </TRANSITION>

Solution 1:

Edit work item definition and Change all SERVERDEFAULT tags to COPY

  <SERVERDEFAULT from="clock" /> ->  <COPY from="clock" />

Solution 2:

Edit work item definition so that fields “By” and “Date” should not be marked as required.

Solution 3:

Download - EditWorkItem.js

  • Copy %Program Files%\Microsoft Team Foundation Server 2010\Application Tier\Web Access\Web\Resources\Scripts\editworkitem.js to the %backup% directory
  • Copy %Patch%\EditWorkItem.js to %Program Files%\Microsoft Team Foundation Server 2010\Application Tier\Web Access\Web\Resources\Scripts\editworkitem.js

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: