Skip to content

Conversation

@micha91
Copy link
Collaborator

@micha91 micha91 commented Jan 17, 2024

We now also support requesting a single work item by its ID with all fields in one request. This includes all linked work items and attachments. According to the documentation, there will be a meta section in the relationships section, if linked work items or attachments were truncated. We use this knowledge to set newly introduced linked_work_items_truncated and attachments_truncated flags in the WorkItem class. Both default to False, but if a work item is returned by the client as result of a get request, we will only set these flags to False, if the corresponding field was requested (which is the case in the newly introduced get_work_item function, but can be customized in the other get_work_items functions) and if we know that the list of items is complete.

Copy link
Collaborator

@ewuerger ewuerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After these things: LGTM.

Copy link
Collaborator

@ewuerger ewuerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@micha91 micha91 merged commit d7f9741 into main Jan 17, 2024
@ewuerger ewuerger deleted the get-single-work-item branch January 17, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants