Naren:
I confirmed what you said above is working in my TFS now. Thanks a lot.
Now I have another issue. Consider the following transition:
<TRANSITION from="In Dev" to="Dev Complete"> <FIELDS> <FIELD refname="System.AssignedTo"> <ALLOWEDVALUES expanditems="true" filteritems="excludegroups"> <LISTITEM value="[project]\Developers" /> <LISTITEM value="Unassigned" /> </ALLOWEDVALUES> <REQUIRED /> </FIELD> <FIELD refname="My.VSTS.Tax.Common.FixedBy"> <COPY from="field" field="System.AssignedTo" /> <VALIDUSER group="[project]\Developers" /> <REQUIRED /> </FIELD> </FIELDS> </TRANSITION>
I want Unassigned to be an option until an item is moved into the Dev Complete state. At that point I also want to set the FixedBy field with the value in AssignedTo. However, if I change the state to Dev Complete and change the Assigned To from Unassigned to a developer at the same time (that is, try to save both changes to gether), it gives an error saying: "The following fields are invalid: TTP Fixed By (ListValue). Save operation failed". Apparently TFS copies the old AssignedTo value to FixedBy rather than the new value.
My question is, is there a way to make to this work, that is, allow Unassigned until moving to the Dev Complete state and set the FixedBy value at the same time?
Thanks a lot Bob |