Rulle
Posted on Nov 4, 2009
(permalink)
Hi,
I'm trying to use the macro @current in a query, I want all sprint
items for the current sprint, but I receive the error message "The query is invalid:The specific variable does not exist. The error is caused by <<@current>>." I have tried to add it both with Query builder and with Query string with no luck. (IterationId=@current)
What can I do to make this work, do I have to add the macro @current
(@next and @previous) or is it a part of TFS or WIM? It would be super
to have it and no need to change the query for every sprint.
Regards,
Reply
Posted on Nov 4, 2009
(permalink)
Hey Rulle,
Looks like you found a bug! These options were added as a feature at one point, but were supposed to be removed due to compatibility issues with TFS and are no longer supported by our application. I have logged this issue and it should be addressed for our next release.
There is another way to accomplish what you are trying to do within the application. Do not use the query builder to get the current iteration, instead use the Are/Iteration Filters Pane. There is a "Current Iteration" button on that pane in the top right that looks like a yellow\orange circular arrow with a blue wave above it. Clicking it will filter your current query to only show items in the current iteration (determined by your iteration schedule).
If you do not want to have to click this button every time, you can set your StartUp query to automatically apply this filter. To do that open the StartUp Query Split Button menu (located in the Work Item Queries Ribbon Button Group), go to the Area\Iteration Filter sub-menu and select the Current Iteration Option.
I hope this answers your question, and if you have any other comments or questions feel free to ask.
Thanks,
Ryan
Reply
Rulle
Posted on Nov 10, 2009
(permalink)
Thank you for your reply, it helped. But still the macro @current would be great to have.
Regards,
Reply