WorkItemStore 컬렉션이 있습니다. 각 WorkItem에 대한 작업을 수행해야합니다. 필자가 반복하는 동안 BoardColumn을 가져와야합니다. 간단하지만 WorkItem에서 BoardColumn을 가져 오는 방법을 알아내는 데 어려움을 겪고 있습니다.C# 각 작업 항목에 대해 TFS 간판 보드 열 가져 오기
// Get our WorkItem Store
TfsTeamProjectCollection projectCollection = GetTfsProjectCollection(tfsCollectionUri);
WorkItemStore workItemStore = (WorkItemStore)projectCollection.GetService(typeof(WorkItemStore));
// Run a query for all Tasks on the "New Creative Work" Board.
WorkItemCollection queryResults = workItemStore.Query(
"Select [State], [Title] " +
"From WorkItems " +
"Where[System.AreaPath] = '<MySysAreaPath>' " +
"AND[System.BoardLane] = '<MyBoardLane>'" +
"AND[System.State] Does Not Contain 'Completed'");
foreach(WorkItem item in queryResults)
{
string myBoardColumn = item[DO NOT KNOW WHAT GOES HERE]...
//DO Stuff > Update db record
}
어떤 도움도 대단히 감사합니다 !!!!
쿼리하는 TFS의 버전은 무엇? –
안녕 데이브, TFS를 사용하고 있습니다. 2015 –