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
Post a Comment