Query Variables
This documentation is archived and is not being maintained.

Query Variables

Visual Studio 2005

Query variables allow you to generate the value for a query, which allows you to create dynamic queries that search for the current date, current user, or current project.

Query Variables

The following table lists the query variables available in Team Foundation work item tracking.

Query Variable Result

@Me

Use the @Me value in the Value column to automatically search for the current user's alias in a field with user aliases (called a People field). For example, if you want to see work items opened by you, you would set the Field column to Activated By, the Operator column to =, and the Value column to @Me.

@Project

Use the @Project value in the Value column for any field that references team projects to search in the current team project.

@Today

Use the @Today value in the Value column for any date field to search for the current date. The query enters the current date whenever it is run. You can also modify the @Today variable by subtracting days. For example, to find all items activated in the last week, you would set the Field column to Activated Date, the Operator column to >=, and the Value column to @Today - 7.

See Also

Show:
© 2016 Microsoft