문제

Quick syntax question: I can return TFS items just fine using several other clauses, but I need to search by specific keyword. Query below:

WorkItemCollection results = wis.Query("SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType] = 'Dev Bug' AND [System.Keywords] = 'constellation'");

System.Keywords is the problem, this part of the clause is not correct. But I cannot find the right syntax anywhere. Help please!!

도움이 되었습니까?

해결책

In future, if you run into a situation where you aren't sure about the name of the work item field. You can connect to the TFS database, open the team project collection database and look at the fields table.

Lets say for example [Tfs_DefaultCollection].[dbo].[Fields]. This will show you the field name, reference name, field Id, etc.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top