示例#1
0
        public async Task <WiqlWorkItemLinkApiResponse> QueryWorkItems(
            string projectId,
            string iterationPath,
            bool isBacklog = false)
        {
            var url = $"DefaultCollection/{projectId}/_apis/wit/wiql?api-version=3.0";

            var query = isBacklog ? GetBacklogQuery(iterationPath) : GetIterationQuery(iterationPath);
            var json  = new
            {
                query
            };

            return(await _apiClient.Post <WiqlWorkItemLinkApiResponse>(url, json));
        }