Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

The setting team.pinnedQueries in VSCode doesn't return the correct result #549

Closed
louagej opened this issue Jul 15, 2019 · 1 comment
Closed

Comments

@louagej
Copy link

louagej commented Jul 15, 2019

Hi,

When I query my workitems directly in Azure on New and Active work items, I get one workitem as result.
2019_07_15_005

When I Use the pin in VSCode I receive all my workitems (16).
2019_07_15_004

So it seems that the @Me filter is working, but the WHERE clause was dropped somewhere along the road.
This is the configuration in VSCode

"team.pinnedQueries": [
    {
      "account": "dev.azure.com/mycompany",
      "queryText": "SELECT * FROM WorkItems WHERE [System.AssignedTo] = @Me AND ([System.State] = 'New' OR [System.State] = 'Active')"
    }
]
@louagej
Copy link
Author

louagej commented Jul 22, 2019

For anyone struggling with the same issue, here's the solution:
Replace dev.azure.com/mycompany into global and add [System.TeamProject] = @project to only see the current work items from you project:

,
  "team.pinnedQueries": [
    {
      "account": "global",
      "queryText": "SELECT * FROM WorkItems WHERE [System.AssignedTo] = @Me AND [System.TeamProject] = @project AND ([System.State] = 'New' OR [System.State] = 'Active')"
    }
  ]

@louagej louagej closed this as completed Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant