let searchQuery = "Retrieve [System.Id], [System.Title], [System.State]
For WorkItems Where [System.WorkItemType] = 'Bug'
sort by [Microsoft.VSTS.Common.Priority] in ascending order, then by [System.CreatedDate] in descending order";
client.getSearch("DMPLM_TP1", searchQuery).then ((result) => {}, (error) => {});
issue : TF401243: The searchRequest Retrieve [System.Id], [System.Title], [System.State] For WorkItems Where [System.WorkItemType] = 'Bug' sort by [Microsoft.VSTS.Common.Priority] in ascending order, then by [System.CreatedDate] in descending order does not exist, or you lack the necessary permissions to access it.