Search code examples
tfs-power-tools

Creating a new WorkItem in TFS using TFPT command line tool with line breaks in Description field


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.


Solution

  • Hate to mark this answered but I did add a workaround that worked for me. Although I added the "solution" to my problem in my OP. Here it is for clarity (thanks for the notion pantelif)

    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.