Unable to edit newly added workspace

I am trying to add a new string field (IterationCompleted) to the error handling element in tfs2010. Using TFS 2010 power tools, I edited the work item by adding a new field. This results in the following XML

<FieldDefinition reportable="dimension" refname="DevX.IterationCompleted" name="Iteration Completed" type="String"> <ALLOWEDVALUES> <GLOBALLIST name="Iterations" /> </ALLOWEDVALUES> <ALLOWEXISTINGVALUE /> <DEFAULT from="value" value="∞" /> </FieldDefinition> 

I added it to the form next to some related fields. Here is the relevant XML

 <Group Label="Classification"> <Column PercentWidth="100"> <Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="&amp;Area:" LabelPosition="Left" /> <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="Ite&amp;ration Found:" LabelPosition="Left" /> <Control FieldName="DevX.IterationCompleted" Type="FieldControl" Label="Iteration Resolved:" LabelPosition="Left" Name="IterationCompleted" /> <Control FieldName="DevX.Customer" Type="FieldControl" Label="Customer:" LabelPosition="Left" /> <Control FieldName="DevX.ReleaseNotes" Type="FieldControl" Label="Include in Release Notes:" LabelPosition="Left" /> <Control FieldName="DevX.Billable" Type="FieldControl" Label="Billable:" LabelPosition="Left" Name="Billable" /> </Column> </Group> 

He does not participate in the work process at all.

The problem I have is of the form. For new errors, the field appears as expected and is edited (resolved by iteration):

Field editable

However, for old errors, this field is not editable. Actually there is no control to introduce something:

Field not editable

I found a similar question with the accepted answer to make sure that the field is a string and that the type is set to FieldControl in the form. As you can see, I did this and still get the results that I see above. I have successfully added fields in the past and have never encountered this problem. Does anyone know what I can do to get this field in old errors?

+7
source share
3 answers

I had this problem in TFS 2010 using VS2012.

Steps to play:

  • Create custom field type: String
  • Add a field to the layout, make sure it is a FieldControl field
  • Preview form: working fine
  • Go to the query and double-click the existing work item of the type you are editing (for me it was a lag item.) Follow the correct way to edit the field, even if the cursor is displayed in the field. Appears read-only.

After checking that the field was not read (false property in the layout), I restarted Visual Studio after saving the changes.

This fixed the problem and the edit control started working fine. I can play it over and over again.

0
source

I came across the same behavior ... Or, at least, similar ...

I had to add default values ​​for all lists.

When I did not have a default value, any WIT that was already created could not set the values, because it was not a LIST of ANNOUNCEMENTS ...

(Note: this / XML code changes the value of the list depending on the state of the WIT)

Example:

 <FIELD reportable="dimension" refname="GovDept.ActionRequiredTFS" name="Action Reqd TFS" type="String"> <WHEN field="System.State" value="Proposed"> <ALLOWEDVALUES> <LISTITEM value="Assess" /> <LISTITEM value="Prioritize" /> </ALLOWEDVALUES> <DEFAULT from="value" value="Assess" /> </WHEN> <WHEN field="System.State" value="Active"> <ALLOWEDVALUES> <LISTITEM value="IA Complete" /> <LISTITEM value="Impact" /> <LISTITEM value="Implement" /> <LISTITEM value="Migrate" /> <LISTITEM value="Unit Test" /> <LISTITEM value="Fix Fail" /> </ALLOWEDVALUES> <DEFAULT from="value" value="Impact" /> </WHEN> <WHEN field="System.State" value="Resolved"> <ALLOWEDVALUES> <LISTITEM value="Test" /> <LISTITEM value="Fix Fail" /> </ALLOWEDVALUES> <DEFAULT from="value" value="Test" /> </WHEN> <ALLOWEXISTINGVALUE /> </FIELD> 

End of sample

+1
source

Dustin,

We have never heard of this behavior. If you want Microsoft to take a look at this problem, you can point out the error at https://connect.microsoft.com/visualstudio

Ewald Hoffman TFS Program Manager

0
source

All Articles