Java SDK - 按用户故事查找文件并使用搁置集。 [英] Java SDK - finding files by user stories and working with shelvesets.

查看:80
本文介绍了Java SDK - 按用户故事查找文件并使用搁置集。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我参与了为我们的应用编写TFS连接器。我们提供了一个从TFVC获取文件的连接器,并将这些文件的翻译版本上传回仓库。

I have been involved in writing a TFS connector to our app. We have provided a connector that fetch files from TFVC and upload the translated versions of those files back to the repo.


以下是我们连接器的一些额外要求:

Here are some additional requirements for our connector:


    < li style ="margin:0px 0px 0.5em; padding:0px; border:0px; word-wrap:break-word">

    在VSTS中找到相应的本地化故事(按用户故事查找文件)

  1. Locate the corresponding localization story in VSTS(finding files by user stories)

将文件与每个应用程序的相应故事相关联

Associate the file with the corresponding story for each application

提交文件以进行代码审核

Submit the file for code review



有没有人知道是否有可能使用Java SDK在TFVC存储库中找到文件,通过查看故事名称来查找文件?

Does anyone know if there is a possiblity to locate files on TFVC repository using Java SDK to find files by looking at the story name?


" 总而言之,连接器当前将文件作为变更集进行检查。附加要求是,当发生这种情况时,文件需要与工作
任务/用户故事相关联(一个用户故事)每个应用程序),然后标记为"需要审查",以便它们成为搁置。
"


甚至可以使用Java SDK for TFS吗?

Are such things even possible using Java SDK for TFS?

推荐答案

您好matkkk,

Hi matkkk,

感谢您发布此处。

根据您的描述,连接器更像是< a href ="https://www.visualstudio.com/en-us/docs/connect/work-team-explorer">
团队资源管理器 在Eclipse中
团队资源管理器无处不在

According to your description, the connector is more like the Team Explorer in VS and Team Explorer Everywhere in Eclipse.

在TFVC中,变更集将与工作项(此处为用户故事)相关联,并使用代码审查与工作项shelveset。因此,您可以通过工作项ID(此处是用户故事ID)找到变更集,然后查找使用
变更集签入的文件版本。

In TFVC, the changeset will be associated to work item (user story here) and it uses code review with work item shelveset. So, you can find the changeset by the work item ID (user story ID here), then find the version of the files which checked in with the changeset.

您的问题是项目级别如此广泛;我建议您查看
< a href ="http://www.woodwardweb.com/programming/getting_started_1.html">介绍与Java SDK相关的文章,了解如何使用TFS对象模型调用TFS。

You question is in project level and so broad; I suggest you have a look at an introductory post which related to Java SDK to see how you make calls to TFS using the TFS Object Model.

该示例是关于工作项的,一旦您了解了对象模型,应该能够弄清楚如何进行与版本控制相关的调用。

That sample is about work items, once you understand the object model you should be able to work out how to make calls related to version control.

此外,由于Java和.NET之间的对象模型是一致的,您应该能够查看C#

示例
做你喜欢的事情并根据需要调整。

Also, as the object model is consistent between Java and .NET, you should be able to look at a C# example that does something similar to what you want and adapt those as needed.

请同时参考这些主题:

最好的问候。


这篇关于Java SDK - 按用户故事查找文件并使用搁置集。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆