Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Fetch work item search results: usage of top and changedDate

オープン
#385 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
azure, python
領域
api

調査の方向性

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時間
マージ済み PR(30日)
1

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/azure-devops-python-api のほかの issue

microsoft/azure-devops-python-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。