Work item description formatting

Is it possible to have work item descriptions formatted with fonts and colors?
[86 byte] By [Eliyahu] at [2007-12-24]
# 1
Yes, it is rich text html, so it can be formatted. For example, try selecting some text from your favourite website (even with images) and pasting it.
NarenDatha-MSFT at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...
# 2

When I copy/paste a formatted text, it does keep its formatting. But when I save the item, the formatting goes and all I can see is just a plain text.

Another point is that it is not practical to enter the description in another program and then copy/paste it to the Team Explorer. Ideally I'd like to have formatting capabilities inside Visual Studio.

Eliyahu at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...
# 3
Some types of work items keep the formatting on saving. Others do not.
J.vonHolten at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...
# 4

It depends on how the work item type is defined. Some types define Description field as HTML field, other may define it as Plain Text. The same kind of control is used for both, but Plain Text field will strip formatting out when saved.

You can turn on "formatting" toolbar. Just right click on toolbar area, and choose Formatting toolbar to be shown. It allows to hilight text, choose fonts, colors, etc.

ValeryTolkov at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...
# 5

The Description field has type of Long text. And the MSDN in http://msdn2.microsoft.com/en-us/library/ms243027.aspx states:

To improve readability, Team Foundation allows you to do simple text formatting in some long text boxes. The text boxes that support text formatting may vary, depending on your work item types.

I tried Description field in Scenario, Task and Bug item types. None of them allow formatting. The formatting toolbar remains disabled. Sad.

Eliyahu at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...
# 6

Hey there,

The Long Text datatype was a pre-release datatype that is no longer present. The RTM version (and probably even Beta3) supports only PlainText and HTML.

The System.Description field is the one that is mapped to the 'Description' text box in the Agile work item types. The data type is 'PlainText' out of the box. Since it is a core field, it cannot be changed to HTML, unfortunately. Your option here is to create a new field of type HTML and use the same (or another) text box to modify its value. This is a viable option if you have just begun to use this project and don't already have a bunch of work items which have the description filled in.

Hope this helps.

Karthik

KSubram at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...
# 7

Any good articles on how exactly to add this field in an existing Team project?

Thanks,

JGP

JGP at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...
# 8
See customizing work item types: http://msdn2.microsoft.com/en-us/library/ms243849.aspx , check form section on how to change work item form to add additional controls
NarenDatha-MSFT at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Work Item Tracking...

Visual Studio Team System

Site Classified