Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect Connect-TfsTeamProject and Connect-TfsTeam when using Get-WorkItemItem #225

Open
igoravl opened this issue Jul 15, 2024 · 0 comments
Assignees

Comments

@igoravl
Copy link
Owner

igoravl commented Jul 15, 2024

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:

  1. Execute the Connect-TfsTeamProject cmdlet to connect to a specific project.
  2. Execute the Connect-TfsTeam cmdlet to connect to a specific team.
  3. 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.

@igoravl igoravl self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant