简体   繁体   English

如何将 TFS 搁置集评论导出为文本或 excel

[英]How to export TFS Shelveset comments to text or excel

Can we export code review comments in a TFS Shelveset to an excel or any Text file.我们可以将 TFS Shelveset 中的代码审查注释导出到 excel 或任何文本文件。 I have attached this image.我附上了这张图片。 The comment in Red circle needs to be exported to excel or any Text file.红圈内的注释需要导出到excel或者任意Text文件。

在此处输入图像描述 Reason - For audit purpose, need to track review comments being given to developer.原因- 出于审计目的,需要跟踪提供给开发人员的审查意见。 Right now we have to manually enter these comments inside an excel code review sheet.现在我们必须在 excel 代码审查表中手动输入这些注释。

Please advise.请指教。

You could write a PowerShell script that queries the REST API see to get a particular shelveset, I would do a List first then a Get Shelveset change and try and get the full changes including the comments then you can save that to a txt file for you auditors.你可以写一个 PowerShell 脚本来查询 REST API 看看得到一个特定的搁置集,我会先做一个列表然后为你做一个获取搁置集更改然后保存评论审计师。 I haven't tried it so I don't know if comments are returned but I think so.我还没有尝试过,所以我不知道是否返回了评论,但我认为是这样。

There is no built-in or documentary way to get the comments on the Shelvesets tab, but if you try to capture the network log, you would see you can get the comments using the following API:没有内置或记录方式来获取 Shelvesets 选项卡上的评论,但如果您尝试捕获网络日志,您会看到可以使用以下 API 获取评论:

Get http://TFS2018:8080/tfs/DefaultCollection/_apis/discussion/threads?artifactUri=vstfs%3A%2F%2F%2FVersionControl%2FShelveset%2F{CodeReviewName}%252526shelvesetOwner%25253D{ownername}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Excel将工作项从一台TFS服务器导出到另一台TFS服务器 - How to export work items from one TFS server to another TFS server using Excel 用标题文本导出到Excel - Export to Excel with header text 导出文本文件excel - export text file excel 如何将Excel中的常规文本替换为HTML无序列表(用于导出为CSV)? - How to replace regular text in Excel into HTML unordered list (for export to CSV)? matlab,如何将文本和数值数据导出到excel csv文件? - matlab, how to export text and numerical data to a excel csv file? 如何使用 PowerShell 脚本修改 excel 数据并导出到文本文件? - How to modify excel data and export to text file using PowerShell script? 如何将数据从excel导出为word作为文本使用VBA - How to export the data from excel to word as text use VBA 如何将多列导出到 Excel 中所有语言的单个文本文件中 - How to export Multiple Columns into individual text files in Excel all languages 如何从Excel Mathematica中将Excel数字导出为文本字段? - How to export to Excel numbers as text fields from Mathematica? 如何使用Python或R将Excel中的替代文本图形导出为PDF? - How to export a graph with alternative text in Excel to PDF using Python or R?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM