Fetch work item search results: usage of top and changedDate
還沒有人認領這個 Issue。
評估
研究方向
先從 issue 中顯示的 WorkItemSearchRequest 和 fetch_work_item_search_results 進入點開始,接著查閱 Azure DevOps work item search API 文件,了解 top 限制和支援的篩選器。完成標準是記錄 top 限制的是傳回的工作項目還是搜尋的工作項目,並確認依變更日期限制結果的支援方式,或明確說明需要 WIQL。
由索引模型根據 Issue 內容生成。
描述
Hey there,
am trying to find matches for some keywords with fetch_work_item_search_results. Param top within WorkItemSearchRequest is limited to max. 1000, does this mean they're max. 1000 results that can be returned or max. 1000 work items that are even checked?
I'd also like to apply a filter to check only for the work items from the past week, but when adding the filter with System.ChangedDate following exception is thrown:
azure.devops.exceptions.AzureDevOpsServiceError: Unknown filter [System.ChangedDate] found.. Which filter could be used instead or is there no possibility to filter a specific timeframe without using WIQL?
sort_option = SortOption(field='system.id', sort_order='ASC')
for keyword in test_keywords:
search_request = WorkItemSearchRequest(
#filters = { 'System.ChangedDate': [ '@Today-7' ]},
search_text = keyword,
order_by = [sort_option],
skip = 0,
top = 1000,
include_facets = False
)
work_item_search_response = search_client.fetch_work_item_search_results(search_request, project=project_name)
- 主要語言
- Python
- 星號
- 684
- 分支
- 218
- 平均合併
- 8 天 10 小時
- 30 天內合併 PR
- 1
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/azure-devops-python-api 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 55/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 1/5 1 小時以內 新手友好度 55/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 45/100
查看 microsoft/azure-devops-python-api 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
難度 1/5 1 小時以內 新手友好度 90/100
-
難度 2/5 1-3 小時 新手友好度 70/100
huggingface/Repo2RLEnv#163 · 1 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
難度 2/5 1-3 小時 新手友好度 70/100
NousResearch/hermes-agent#121143 ·