Email URL links to TFS work items and queries
To share the details of one or more work items, you can email a link to a query, a table-formatted list of linked work items, or a single work item. You can perform these tasks from Visual Studio Team Services (VSTS), the web portal for Team Foundation Server (TSF), or Team Explorer.
If you’re working from the Team Explorer plug-in for Eclipse, you’ll need to open the web portal to access these features.
Each of the first three options requires you to first create or run a work item query.
You can also use any text editor to compose a message, and you can build a hyperlink to a work item and post the hyperlink on a Web page or send in an email message.
With this option, you capture a URL of a query written using the work item query language (WIQL). You can capture this query for any saved or unsaved query.
Open the queries page, display the query of interest, and choose Copy query URL.
If you don’t see the Copy query URL option, open the Editor view.
Paste the URL into an email to share. Opening the query requires users to have read access to the team project.
To learn more about WIQL, see Query for Bugs, Tasks, and Other Work Items.
With this option, you can copy an HTML formatted table of selected items in a query result list. You can then email this list using your choice of email client.
Open a web browser and display a query results list.
Select an item or highlight several items and choose Copy as HTML.
The formatted table contains a link to each work item included in your selected results list.
Paste the contents of the clipboard into your email client. To open a linked work item, requires users to have read access to the team project or area node for those work items.
To use this option, your TFS administrator must have configured an SMTP server for TFS. For VSTS users, your selected query results are emailed from the email@example.com account.
Display a query results list.
From the web portal, select an item or highlight several items and choose Email selected work items from the context menu.
Or, from Team Explorer (Visual Studio), choose Send Query to Microsoft Outlook. This option requires that you configure Office Outlook on your client computer.
On the To line, type the user name(s) of valid users (ones who have access to the team project).
A: Define a link that conforms to the following syntax:
For on-premises TFS:
AccountName specifies the name of the VSTS account.
ServerName specifies the name of the server that is running Team Foundation Server.
Port specifies the port that Team Foundation Server uses. The default value is 8080.
CollectionName specifies the name of the team project collection.
TeamProjectName specifies the name of the team project.
WorkItemNumber specifies the ID of the bug, task, or other work item to which you want to link.
A: Yes. You can permanently remove work items from the TFS database by using the witadmin destroywi command. Work items whose state is set to Closed, Done, or Removed remain in the database and can be reactivated. Permanently removed work items can’t be restored nor reactivated.