How do I add a line break in the description field of a new WorkItem using the TFS 2010 Power Tools command line utility TFPT? I've tried this:
Z:\>tfpt workitem /new "Project Ipsum\Issue" /collection:http://myserver:8080/tfs/test /fields:"Title=Testing Command Line 3;Description=Description of issue goes here<br /><br />I'd like to have line breaks too"
and this:
Z:\>tfpt workitem /new "Project Ipsum\Issue" /collection:http://myserver:8080/tfs/test /fields:"Title=Testing Command Line 3;Description=Description of issue goes here\r\nI'd like to have line breaks too"
to no avail.
Any suggestions out there?
============================
One workaround I have implemented is to create a new (actually extended) work item with properties that I was initially embedding in a long description. So, now I've broken them out into separate fields like:
Z:\>tfpt workitem /new "Project Ipsum\Issue" /collection:http://myserver:8080/tfs/test /fields:"Title=Testing Command Line 3;Description=Description of issue goes here;Field1=more info;Field2=even more data"
Then I created form fields (a new tab group) to display them. It's cleaner that way anyhow.
Still would be interesting to determine how to add line breaks with TFPT.
Thanks.
tags would work. But I think they convert the < to < and the > to >. The
text is displayed as is on the Description field. And the History control is listed as a WorkItemLogControl which apparently does accept HTML tags. – beaudetious Nov 02 '11 at 18:46