How to add an image to a TFS work item; as an imag

2019-04-25 07:17发布

Our team is in the process of begining a project which is being managed using TFS. Several requiremens which existed only in Word documents are being migrated to TFS work items. The Word documents contain various diagrams and images which we need included in the work item, specifically under the 'Details' and 'Analysis' tabs. The problem is that images cannot be pasted into these tabs as images.

The only option to add images to the work item appears to be as an attachment.

Could someone confirm this?

Any assistance is appreciated.

标签: tfs
4条回答
虎瘦雄心在
2楼-- · 2019-04-25 07:33

Using the stock workitem this is true. You can extend the workitem display within the team explorer with your own custom controls that could display an attachment inline, but this won't be a small effort.

There are samples and guidance here

查看更多
唯我独甜
3楼-- · 2019-04-25 07:38

We write our Word documents, save them as filtered HTML and copy file and folder containing the images onto the server hosting the TFS. We then open the html from the server version in a browser and copy/paste requirements into the work items description field. Is a workaround, would be much nicer being able to directly copy/paste images into a workitem, but at least it works.

查看更多
Deceive 欺骗
4楼-- · 2019-04-25 07:39

You can change the text boxes to accept HTML, but that may still require the image to be hosted elsewhere.

HowTo: http://msmvps.com/blogs/vstsblog/archive/2009/01/11/using-rich-html-descriptions-instead-of-plain-text.aspx

It may also be best to just link to the existing document. We have to do this for now, because we have a large repository of existing documentation that no-one wants to bother converting.

查看更多
够拽才男人
5楼-- · 2019-04-25 07:40

The below steps worked for our team:

1- I added a *.png file as an attachment

2- Opened that *.png file within IE from the attachments tab

NOTE: Once the image opens in IE the address should be something like the below:

http://tfs.mysite.com:8080/tfs/defaultcollection/WorkItemTracking/v2.0/AttachFileHandler.ashx?FileID=1234567&FileName=TFS-12345-QA.PNG

If the address has "c:\etc" which is locally stored then it will not work. The image has to be network accessible so other team members may see it in TFS.

3- Right click the image and select copy

4- Now within TFS under the "History" tab where you're entering your notes paste the image

5- Save the workitem and that is it.

Cheers!

查看更多
登录 后发表回答