Try "from WorkItems" instead of "from Work Items".
Remove temporarily the "where..." condition to perform a simple test.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I’m looking to query all work items from devops. I’m successfully listing projects, but when I query there’s nothing. I’m using vb.net. Below is my code:
Hi, I’m looking to query all work items from devops. I’m successfully listing projects, but when I query there’s nothing. I’m using vb.net. Below is my code:
I’m calling the LoadworkitemsAsync function from Form_Load
Dim r = LoadworkitemsAsync(“testproject”)
Public Async Function LoadWorkItemsAsync(projectname As String) As Task(Of WorkItem)
Dim credentials = New VssBasicCredential("", _Personalaccesstoken)
Dim WQuery As New Wiql()
With WQuery
.Query = "select [System.ID], [System.Title],[System.Description]" _
& " from Work Items Where[System.WorkItemType]='Epic' and" _
& " [System.Teamproject]= " + "'" & projectname & "'"
End With
Dim WitClient As New WorkItemTrackingHttpClient(ADOUri, credentials)
'Here nothing happens it returns back to the function call
Dim wresults = Await WitClient.QueryByWiqlAsync(WQuery).ConfigureAwait(False)
Try "from WorkItems" instead of "from Work Items".
Remove temporarily the "where..." condition to perform a simple test.