-
-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Problem:
Currently, the Get-WorkItem cmdlet does not respect the connections established by Connect-TfsTeamProject and Connect-TfsTeam. This causes context issues when fetching work items, as users expect Get-WorkItem to utilize the active connections of the previously configured project or team.
Reproduction:
- Execute the
Connect-TfsTeamProjectcmdlet to connect to a specific project. - Execute the
Connect-TfsTeamcmdlet to connect to a specific team. - Attempt to fetch work items using
Get-WorkItem.
Expected Behavior:
Get-WorkItem should respect the connections established by Connect-TfsTeamProject and Connect-TfsTeam, returning work items in the context of the specified project or team.
Current Behavior:
Get-WorkItem ignores the established connections and returns work items without considering the connected project or team.
Impact:
This issue prevents users from efficiently working with specific project or team work items, increasing the complexity and time required to perform accurate queries. Worse, it may really to data loss if the user pipes the result of Get-TfsWorkItem to Remove-TfsWorkItems
Proposed Solution:
Modify the implementation of the Get-WorkItem cmdlet to respect the connections established by Connect-TfsTeamProject and Connect-TfsTeam, ensuring that work item queries are performed in the appropriate context.