I have such wiql to get work items from TFS:
SELECT [System.Id], [System.Title], [Area Path], [Iteration Path], [Priority], [Test Owner], [Assigned To],[System.State], [System.Reason]
FROM WorkItems
WHERE [System.WorkItemType] = 'Feature' and
[Iteration Path] != '' and
[Area Path] Under 'MyProject'
Field [Assigned To]
returns Display Name of the user. Is it possible to get AccountName of that user? Thank you!