index > Team Foundation Server - Work Item Tracking > Work item description formatting

Work item description formatting


Is it possible to have work item descriptions formatted with fonts and colors?
Eliyahu
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.


http://blogs.msdn.com/narend
Naren Datha - MSFT

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
Some types of work items keep the formatting on saving. Others do not.
J. von Holten

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.

Valery Tolkov

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

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




Karthik Subramanyam
KSubram

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

Thanks,

JGP

JGP
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


http://blogs.msdn.com/narend
Naren Datha - MSFT
reply 9

You can use google to search for other answers

 

More Articles

·tf86001 Team foundation was unable to load Execl Add in
·Having no one assigned to a Work Item
·getting selected item
·Readonly field and emphasizing font color
·Word crashes when connecting to TFS
·Added fields and mapping changes
·Creating an workitem from an email
·Possible bug(?): LinksControl as a required field
·Error connecting to TFS from MS Project
·Accessing TFS from a web app
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

·More Resources
·Bulk update using MS Excel is very slow
·Attach a note to a work item
·Locating Work Item Attributes In TFS Dat¡­
·Work Item Dependency
·Actual End Date and Actual Effort
·Assignment and delegation: Is teher any ¡­
·Display fullpath with filename in the WI¡­
·Nested conditions in WIT definition
·How to Implement task into the version c¡­
·Work Item Classification and Project Hie¡­
·MS Project/TFS work items won't move whe¡­
·Estimate Extensibility
·Grouping Query Clauses
·Unable to publish new project tasks

Hot Articles

·How do I specify dependancies (and impor¡­
·Access is denied: Could not create metad¡­
·There is a way to make the link control ¡­
·WorkItem Class is not marked as serializ¡­
·System.InvalidOperationException when ca¡­
·Work Item to Work Item associations
·Unassociate Project Server project from ¡­
·Open source control
·How to mark work item as resolved
·Work Item Tracking Transistions: Automat¡­
·Can't browse work items
·Deleting Work Items
·Making work items forms read-only for a ¡­
·Using Microsoft Project with TFS Work It¡­
·Apply column options to multiple queries

Recommend Articles

·Found In Build list too long
·I am have a problem with getting TFS to ¡­
·Unpublished changes in Project
·How to create AreaPath dropdown in winfo¡­
·"Forcing rollback" error savin¡­
·Task Duration MS Project vs. VSTF Task
·MS Project intagration problems
·How to get the next allowed state from t¡­
·Changing transition rules, only reason t¡­
·VSTS and Excel integration
·Project fails to update project plan for¡­
·Custom work item editor
·How to Implement task into the version c¡­
·Contains operator for WorkItem HTML fiel¡­
·Unassociate Project Server project from ¡­