tfs2013 - Tfs Can not Get Project Name from Query programmatically using @Project parameter -


i'm looking help, guys! want current project name query, using custom plugin.

here code

workitemcollection queryresults = workitemstore.query("select [system.teamproject] workitems [system.teamproject] = '@project'");  foreach (workitem item in queryresults) { // somecode; } 

so result of query empty.. have no idea why.. if i'm writing real project name instead of '@project' it's works.. tried write @project wihout quotes - no result.

you can't use "@project" in code this. @project available within visualstudio work item query can infer team project based on selected project in team explorer.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -