Assigned To field should not be empty

When work item is closed, Assigned To should not be empty i.e. it become Unassigned so if you run the query saying sort the WorkItems which are closed and assigned to me, it won’t show the same. So the proper results would be available if and only if you sort it by Unassigned field in the query.

Can you please give me the solution to sustain the names even though the work item was closed

Thanks,

Kathir



Answer this question

Assigned To field should not be empty

  • Master Programmer

    Kathir,

    The workitem type definition of a task contains the following part in the XML definition:

    <STATE value="Closed">
    <FIELDS>
    <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
    <REQUIRED />
    </FIELD>
    <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
    <REQUIRED />
    </FIELD>
    <FIELD refname="System.AssignedTo">
    <EMPTY />
    </FIELD>
    </FIELDS>
    </STATE>

    By removing the last part of the definition and re-uploading the workitem type definition to the server it will not empty the AssignedTo field anymore when you close a work item.
    Downloading can be done using WitExport.exe found in the common7\ide folder of visualstudio, uploading is done using witimport.exe

    Marcel



  • Assigned To field should not be empty