Pap*_*ndy 7 c# wiql azure-devops azure-devops-rest-api
这不是本地安装,只是 VSTS。我是使用 VSTS REST API 和 WIQL 的新手。我正在尝试运行一个查询来过滤我的工作项System.Tags = 'User Generated'。当我检索我的工作项时,我可以在 JSON 中看到:
System.Tags : "User Generated"
Run Code Online (Sandbox Code Playgroud)
我正在使用以下指南来构建我的查询并使一切正常,除非我尝试过滤标签。我试过[System.Tags] Contains ('User Generated'),等等。似乎没有任何效果。有任何想法吗?
好吧,在我放弃并发布后,我想通了。我错误地使用了包含。我在括号里有过滤器。以下两个示例现在都可以使用。
Select [System.Id], [System.Title], [System.State], [System.Tags]
From WorkItems
Where [State] <> 'Closed'
AND [State] <> 'Removed'
AND [Tags] Contains 'User Generated'
AND [System.WorkItemType] = 'User Story'
order by [Microsoft.VSTS.Common.Priority] asc, [System.CreatedDate] desc
Run Code Online (Sandbox Code Playgroud)
或这个:
Select [System.Id], [System.Title], [System.State]
From WorkItems
Where [State] <> 'Closed'
AND [State] <> 'Removed'
AND [System.Tags] Contains 'User Generated'
AND [System.WorkItemType] = 'User Story'
order by [Microsoft.VSTS.Common.Priority] asc, [System.CreatedDate] desc
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5197 次 |
| 最近记录: |