How to associate a work item with registration when using tf.exe

We have a rule in TFS that requires all checks to be associated with a work item. We have an automated daily build process that uses tf.exe to check files. However, I did not find a way to associate files with the work item. I heard about tfpt and installed it, however, I had no success using it to link files with a set of changes. Is there any other way to do this?

Thanks!

+4
source share
2 answers

I am sure that tf.exe / tfpt.exe cannot do this except through its interface. If you need to use the -noprompt option for automation, then you are most likely out of luck.

Fortunately, it is not difficult to use the API directly. MSDN link . Basically just create an array of WorkItemCheckinInfo [] and pass it along with your request.

+3
source

Team Foundation Power Tools has a team for working with work items.

tfpt.exe help workitem 
-one
source

All Articles