microsoft / microsoft/azure-devops-python-api

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

Open
#362 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
684
Forks
218
Avg merge
8d 10h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing get_work_client() and get_boards(team_ctx), then inspect the returned BoardReferenceObject and the Work Item Tracking client entry points. Confirm which documented method retrieves a work item's ID, name, and state, and clarify why get_work_item() is not available on BoardReferenceObject.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
api
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.