TFS Attachment Extraction
-
Friday, February 03, 2012 5:47 PM
Hi, I'd like to pull out every attached file from every ticket within the Area Path = PRoPHET\Pricing\* I'd like the files, plus what ticket number they are attached to and what area path that ticket is in. Is this possible, or will I have to manually go through each ticket (which could take hours) ?
Could you please provide steps to resolve this?
Regards
Sreedhar
All Replies
-
Saturday, February 04, 2012 6:39 PM
Hi Sreedhar1303,
The easiest way would be to loop all attachments of the workitems returned from a workitem query using the TFS API. You could write the other information to a general log file.
-
Sunday, February 05, 2012 2:31 AM
Hi,
Thanks for you response.
The requirement has given below.
TFS ticket #1234 had a PDF document attachment called "Document.pdf", then I want the actual document to be copied from the ticket, and some kind of data table to tell me which ticket that document came from.
I want the actual attached files, not just the names of the attachments. Presumably all these files will need to be zipped up because there could be 100 or more of them.
Could you please provide me steps to achieve above your solution.
Regards
Sreedhar
- Edited by Sreedhar1303 Monday, February 06, 2012 11:01 AM
-
Tuesday, February 07, 2012 7:34 AMModerator
Hi Sreehar1303,
Thanks for your post!
You can use TFS API to implement what you need.
Please refer to the following links about this:
Hope it helps!
Best Regards,
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
-
Friday, February 10, 2012 2:58 AMModerator
Hi Sreehar1303,
I am writing to check to the status of the issue on your side, would you mind letting us know the result of the suggestions?
Best Regards,
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
-
Monday, February 13, 2012 6:25 AM
Hi,
Thanks fo ryour mail but not able to implement this functionalities.
I have few questions from my end, you have given code in the above link how to implement this.
Need to write separate application or something.
Could you please provide me step by step to acheive this.
Regards
Sreedhar
-
Wednesday, February 15, 2012 7:52 AMModerator
Hi Sreedhar,
Thanks for your feedback!
You can refer to Connect to Team Foundation Server from a Console Application for detail.
For more information, you can refer tohttp://msdn.microsoft.com/en-us/library/dd470570.aspx.
Hope it helps!
Best Regards,
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Cathy KongMicrosoft Contingent Staff, Moderator Tuesday, February 21, 2012 9:21 AM

