简体   繁体   English

将mylyn Jira任务链接到Eclipse中的Java源代码注释

[英]Link mylyn Jira task to Java source code comment in Eclipse

I have pretty much the same question as in the link below except that I'm using the Jira mylyn connector. 除了我使用的是Jira mylyn连接器外,我与下面的链接中的问题几乎相同。 I have my Jira Task Repository defined and was just wondering if this is possible. 我定义了我的Jira任务存储库,只是想知道是否可行。

Link to mylyn task in Java comment (Eclipse) 链接到Java注释中的mylyn任务(Eclipse)

ie Something like //See JIRA-123 where the Jira issue number is a clickable link. 即类似//See JIRA-123 ,其中Jira问题编号是可单击的链接。

Thanks 谢谢
Simon 西蒙

There is no direct connection between JIRA and Eclipse possible. JIRA和Eclipse之间可能没有直接连接。 The reason for that is, that JIRA has no access to your local Eclipse installation. 这样做的原因是,JIRA无法访问您的本地Eclipse安装。 But there is a connection possible eg between JIRA and Subversion. 但是在JIRA和Subversion之间可能存在连接。 So if you use Mylyn, and commit on a JIRA ticket in Mylyn, Mylyn will add automatically the active JIRA ticket ID to the commit message of Subversion. 因此,如果您使用Mylyn并在Mylyn中提交JIRA票证,则Mylyn会将活动的JIRA票证ID自动添加到Subversion的提交消息中。 JIRA will then later read the commit message from the Subversion repository (if configured to do that), and will then display a backlink from the ticket to the Subversion Change Set (including diffs). 然后,JIRA稍后将从Subversion存储库中读取提交消息(如果配置为这样做的话),然后将显示从票证到Subversion变更集(包括diff)的反向链接。

See the following resources for additional information: 有关其他信息,请参见以下资源:

You have to have a configuration management system to do that ... 您必须具有配置管理系统才能执行此操作...

After having read your question again, I think you will need an additional plugin for Mylyn, that interprets your sources and searches there for your JIRA issue ID patterns. 再次阅读您的问题后,我认为您将需要Mylyn的其他插件,该插件可解释您的来源并在其中搜索JIRA问题ID模式。 But that is a totally different story (and I would not do that ... comments are forgotten, your issues is solved, but the ticket ID remains). 但这是一个完全不同的故事(我不会那样做...忘记了评论,解决了您的问题,但票证ID仍然保留)。 Solving a ticket is something that has to do with commits in CM systems. 解决票证与CM系统中的提交有关。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM