microsoft / microsoft/azure-devops-python-api

Error while trying to invoke get_work_item() to get Work Item ID, Name, Status

未關閉
#362 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Python
星號
684
分支
218
平均合併
8 天 10 小時
30 天內合併 PR
1

描述

get_boards attribute is a part of get_work_client() function. Could you confirm get_work_item attribute is a part of which source function. Im looking to get the Work Item ID, Name and the State(active/closed) of a Work Item in Azure Devops. I get error when i try this.

for board in wit_client.get_boards(team_ctx):
pprint.pprint("Board ID " + board.id)
pprint.pprint("Board Name " + board.name)
print(board.get_work_item(projects.id))
The Error is BoardReferenceObject has no attribute get_work_item

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先追蹤 get_work_client() 和 get_boards(team_ctx),接著檢查傳回的 BoardReferenceObject 以及 Work Item Tracking 用戶端的進入點。確認哪個文件記載的方法可以取得 work item 的 ID、名稱和狀態,並釐清為什麼 get_work_item() 在 BoardReferenceObject 上無法使用。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
azure, python
領域
api
Issue 類型
文件
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。