TFS web access attachements drag and drop - tfs

I know it is possible to drag and drop files or for example mails from Outlook to Attachement tab in VS (if VS was started as Administrator Outlook should also run under this account).
But I was not able to find out if this is also possible with web Access...I tried but it was not successfull. I could drag and drop an email to a text box (text is added) but not to attachment control...is this not possible?! We are running TFS 2015 as on premise.
Greetings,
Daniel.

This doesn't appear to be implemented yet in Visual Studio Online, so I can't think it would be in any of the on premises versions of TFS.
I've just tried in Edge and you get an overlay on the image showing it's not allowed:
You could suggest this on the Visual Studio User Voice or ask Aaron Bjork who's the Program Manager for Work Item tracking.

Related

TFS Visual Studio 2017: Search for a file by name in source control

Our application code is spread over many dozens of folders in a nested hierarchy, and we have several hundred files making up the application.
So I wanted to know if there is a way to search for files by their name in the Visual Studio 2017 version of TFS ?
I spotted Q & A as per:
TFS: Search for a file by name in source control
but this answer seems no longer applicable for TFS and Visual Studio 2017.
I can, of course use tools outside of TFS (like the "Search Everything" app) and then navigate to the same folder and file in TFS.
I just felt that surely there must be a way of doing this file search within TFS ?
I have tried the search option in Team Explorer but I'm not sure how to use this ... not sure if this works ?
i.e.
There should be a search bar at the top of the TFS site that looks something like this you can enter all sorts of filter like those in the picture. Or you can search in files but that will only look at what you have checked out at the moment and not all over TFS. If you don't see the Search bar, it might be because your TFS Administrator did not install the search extension. You might want to contact him/her.
There is not any out of box feature to do this in Visual Studio 2017/Team Explorer2017 directly. If you want to search folders/files by name:
For TFS 2017, you can use Code Search if it's been configured by
your TFS admin. This is through web portal, more details please refer
this doc-- Search your code
For earlier TFS versions, you can create a local workspace and "get"
that specific version locally. Then use the built in search in your
OS (such as Windows file explorer) to find what you are looking for.
Hope this helps.

Is it possible to customize TFS to provide user friendly forms for registering bugs?

I need to let users register bugs similar to how it is done in Bug tracking systems.
I'd like to create user friendly form with a layout which will guide user. Standard Create New Workitem interface is too overloaded for users.
Today we manually look through inbox and register bugs in TFS ourselves. This is really a pain. Users often do not mark the message in subject as a bug. You need to read it to understand user has a problem. Sometimes you need to ask them about the criticality level and what the deadlines for fixing it are.
It is easy to miss important message and this process distracts from main activity.
(Based on you having Visual Studio and having already connected to TFS in there)
In Visual Studio, via the menu, choose Tools > Process Editor > Work Item Types > Open WIT from server
EDIT: You will need to install the Microsoft Visual Studio Team Foundation Server 2015 Power Tools Extension in Visual Studio to gain access to that menu option above
You will then be presented with a popup box. At this point you will need to navigate to the Project Collection you wish to make changes in. Once selected you will then be presented with a list of forms you can edit. e.g. Task, Bug, Code Review etc.
If you select Task you will then be taken to a form where you will have 3 tabs. Fields, Layout and workflow. From here you have a certain level of customisation available.
I found a couple of articles (below) around customising templates. One is for TFS 2015, the other is for TFS 2013.
http://blogs.msdn.com/b/visualstudioalm/archive/2015/12/10/adding-a-custom-field-to-a-work-item.aspx (TFS 2015)
https://www.simple-talk.com/dotnet/visual-studio/customizing-team-foundation-server-2013/ (TFS 2013)
NOTE: Menu option Open WIT from server will make changes directly on the server. There are other option where you can make changes locally, then import those changes in. The above is just a way to get you to the screen to customise the forms so that you can take a look around.

Can't find reports in Team Foundation Server 2010

I have recently setup TFS 2010 and am trying to access the reporting feature. TFS is installed on Windows Server 2008 R2 and I am accessing TFS using Visual Studio 2010.
From what I have seen on the web, I should have a reports option in Team Explorer or from the Team menu in Visual Studio. I don't have this option at all. I have seen MSDN articles saying the option may have a red cross next to it, but I don't see at all.
From the TFS Admin console, reporting seems to be setup. All three options (Warehouse, Analysis Services and Report Server) have a green tick and say "Configured".
If I access the reports URL, I get a web interface but there are no out-of-the-box reports.
Thanks in advance for your help.
The problem was that the default reports folder location had not been set. I only noticed by clicking through all the screens in desperation.
Open the TFS Admin Console, go to Application Tier > Team Project Collections. Then in the Reports Folder tab at the bottom make sure you have set a value. I just used the default example which was /TfsReports/DefaultCollection.
You don't see the folder "Reports" in this view?
Do you have a screen like this?

Paste screenshot into TFS 2010 Web access for bugs

Is there anyway to automatically paste screenshots into TFS 2010 Web access for bugs? I don't want to have to save the screenshots into files and then add them as an attachment. This takes a while to do this. I just want to quickly add them to the bug.
I don't think you can.
See this similar (possibly not identical) question on MSDN forums:
http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/fe8b80c9-8fbd-4d6c-bc65-80d75dd3409b/
In response to:
Now, when adding the task into TFS 2010 , I can use the cupboard to “copy/Paste” from OneNote to TFS. But then the image is stored as a link to my local machine and not stored in TFS server.
The answer was (repeatedly stated):
As I said in my previous reply, we should to add the images as attachment into Work Items. Open Work Item in VS, click Attachments tab, then click Add to browse your images, the images will store in TFS Server.
Or, DIY and write an application
TFS exposes an API that you could use to create your own tool, rather than using their web access. See this question for how to implement that particular piece (adding attachments):
Upload a file using TFS Client APIs
In Visual Studio 2010 you can go to the Attachments Tab and paste your screenshot using CTRL-V.
An attachment called 'screenshot.png' will automatically be created.

How to get TFS Build Status notifications?

I want to get the build status in TFS (whether it is succeeded or failed). Which classes and methods can be used for this purpose?
You can run Build Notifications, which is similar to CC Tray in that it will continually give you the status of all builds that you're interested in following. To launch the tool, go to...
All Programs-->Microsoft Visual Studio 2010-->Team Foundation Server Tools-->Build Notifications
Click on the Options button to subscribe to whichever builds are on your server. This will now show up in your system tray with a green check box or red X to indicate the status of the builds you've selected.
In Visual Studio 2013 with TFS 2013, you have email alerts from TFS and a Build Notification system tray tool: http://msdn.microsoft.com/en-us/library/ms181725.aspx
However, it usually doesn't show up in the Windows 8 Start screen, even with a search. So, run it manually in most installations from here:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\BuildNotificationApp.exe
The TFS API is mostly documented on MSDN under the Visual Studio SDK: http://msdn.microsoft.com/library/bb130146, however the build APIs are in a different location (in the TFS documentation): http://msdn.microsoft.com/library/cc339575.
These are the same assemblies that tf.exe and Team Explorer (etc.) use.
If you just want the alert (not programmatically): You can right-click on the project in the Team Explorer and select Project Alerts.
You can use AnyStatus to monitor both XAML and vNext builds and lots of other monitors such as Windows Services, HTTP, TCP/IP, Ping, GitHub, Other CI/CD tools, Performance Counters and more.
Disclaimer: I am the author of AnyStatus
Check out the MSBuildCommunityTasks library. It has a Mail task.
Import this into your build project to send the mails.
To enable build notification e-mail alerts, in Team Explorer:
If you are not already connected to the team project that you want to work in, then connect to the team project.
Choose Home, and then choose Settings.
On the Settings page, under Team Project, choose Project Alerts.
Select one or more alert events.
In the Send My Alerts To box, choose Edit and enter the email address of each person who should receive the alerts. Use semicolons to separate multiple email addresses.
more details, see : https://msdn.microsoft.com/en-us/library/ms181725.aspx
I just discovered CatLight which just works with little fuss. Never had any success with AnyStatus. CatLight sits in your tray and notifies you when builds succeed or fail.
Under TFS 2008, you can right click on the TFS Project name (in Team Explorer) and select Project Alerts.
Then pick the A Build Completes alert and put your email address into the Send To field.
I think TFS 2005 also has this feature, but I can't rememeber. It's been awhile. ;)

Resources