Do you control the drop down list value for Assigned To field?

Updated by Brady Stroud [SSW] 1 year ago. See history

123
<introEmbed body={<> The default WIT doesn’t control the valid drop down items in Assigned To filed, this will introduce unnecessary items to be shown in the list which will make your users confused, e.g. TFSBUILD, tfsBuildService should never be used to assign a job. ![](/uploads/rules/do-you-control-the-drop-down-list-value-for-assigned-to-field/UnnecessaryValue.png) Figure: Bad Example – shown unnecessary values </>} />

You can add the following XML in the Assigned To filed definition to control the valid values:

<FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension" syncnamechanges="true"> <ALLOWEXISTINGVALUE /> <REQUIRED /> <ALLOWEXISTINGVALUE /> <VALIDUSER /> <ALLOWEDVALUES expanditems="true" filteritems="excludegroups"> <LISTITEM value="Active" /> <LISTITEM value="[project]\xxxxDepNamexxxxGroup" /> </ALLOWEDVALUES> </FIELD>

Figure: Use ALLOWEDVALUES to control the values in Assigned to field

Figure: Good Example – shown necessary values

Acknowledgements

Lei Xu
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star