microsoft / microsoft/azure-devops-python-api
Error while trying to invoke get_work_item() to get Work Item ID, Name, Status
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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