Claude01

I configured a new field in the template of Change Request which is "PGGovern.Customer.Name". This field must post the contents of the GlobalList Govern.Customer or PG.Customer according to the company selected in the PGGovern.Product.Division field. But in TFS, I do not see the contents of the list being posted, I see only the name of the GlobalList: GLOBALLIST: Govern.Customer
Why the contents of the list do not post when I use "When". Because if I do not use When, all functions well. Or if with "When" I use LISTITEM, then that does not function.

<FIELD name="Customer Name" refname="PGGovern.Customer.Name" type="String">

<WHEN field="PGGovern.Product.Division" value="Govern">

<ALLOWEDVALUES>

<GLOBALLIST name="Govern.Customer" />

<ALLOWEDVALUES>

</WHEN>

<WHEN field="PGGovern.Product.Division" value="PG">

<ALLOWEDVALUES>

<GLOBALLIST name="PG.Customer" />

</ALLOWEDVALUES>

</WHEN>

</FIELD>



Re: Team Foundation Server - Work Item Tracking Do not post the contents of a GlobalList if I use a rule

Matthew Mitrik MSFT

((Moved to WIT forum))






Re: Team Foundation Server - Work Item Tracking Do not post the contents of a GlobalList if I use a rule

Aliaksei Baturytski - MSFT

This might happen when the global list is empty. Could you export "Govern.Customer" global list and check whether it has any values in it

Alex





Re: Team Foundation Server - Work Item Tracking Do not post the contents of a GlobalList if I use a rule

Aliaksei Baturytski - MSFT

Closing due to lack of information.





Re: Team Foundation Server - Work Item Tracking Do not post the contents of a GlobalList if I use a rule

Claude01

I exported my "Govern.Customer" global list and it has somes values in it. Same thing with "PG.Customer" global list.





Re: Team Foundation Server - Work Item Tracking Do not post the contents of a GlobalList if I use a rule

Aliaksei Baturytski - MSFT

Are there any other rules defined for that field Could you post your work item type definition

Alex





Re: Team Foundation Server - Work Item Tracking Do not post the contents of a GlobalList if I use a rule

Claude01

My work item type definition is :
I skipped the many section because 50000 caract. limit. My frame is MSF CMMi 4.1

<WITD application="Work item type editor" version="1.0" xmlns:witd="http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef">

<WORKITEMTYPE name="Change Request">

<DESCRIPTION>Includes information to track changes through the MSF for CMMI Process Improvement life cycle</DESCRIPTION>

<GLOBALLISTS>

<GLOBALLIST name="Govern.Customer">

<LISTITEM value="ALX" />

<LISTITEM value="AME" />

</GLOBALLIST>

<GLOBALLIST name="PG.Customer">

<LISTITEM value="Alleyn-et-Cawood (CU)" />

<LISTITEM value="Alma (V)" />

<LISTITEM value="Yamaska (M)" />

</GLOBALLIST>

</GLOBALLISTS>


<FIELDS>


<FIELD name="Customer Name" refname="PGGovern.Customer.Name" type="String">

<WHEN field="PGGovern.Product.Division" value="Govern">

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="GLOBALLIST: Govern.Customer" />

</ALLOWEDVALUES>

</WHEN>

<WHEN field="PGGovern.Product.Division" value="PG">

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="GLOBALLIST: PG.Customer" />

</ALLOWEDVALUES>

</WHEN>

</FIELD>

<FIELD name="Division" refname="PGGovern.Product.Division" type="String">

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Govern" />

<LISTITEM value="PG" />

</ALLOWEDVALUES>

</FIELD>

</FIELDS>

</WORKITEMTYPE>

</WITD>