在 JIRA 中的事件发生后自动执行任务。
对于我们公司,我们首先在等待发布时将项目移至已解决,然后在发布后将所有已解决的票证移至已关闭。在修复版本发布后,是否可以使用某种自动化功能来关闭这些票证?
For our company we first move items to resolved while we are waiting for a release and then after the release we move all resolved tickets to Closed. Is there some kinda of automation that can be used to close these tickets after their fixVersion is released?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要编写自己的事件监听器,该监听器将订阅问题更新事件,并检查 FixVersion 是否已更改,并将问题的状态更改为“已关闭”。
以下是一些可以帮助您入门的链接:
监听器
插件教程 - 使用 atlassian-event 库编写 JIRA 事件监听器
但是在开始编写插件之前,您可能需要更改公司有关关闭问题的程序。通常程序员会解决问题,而创建问题的人会在测试后关闭它。这是关于关闭与解析的很好的讨论 - https://stackoverflow.com/a/4718505/941776。问题发布后是否特别需要关闭?
You will need to write your own Event Listener that will subscribe to Issue Update event and will check if FixVersion was changed and will change issue's status to 'Closed'.
Here are some links that will get you started:
Listeners
Plugin Tutorial - Writing JIRA event listeners with the atlassian-event library
But before you start writing your plugin maybe you need to change your company procedure in regards to closing issues. Usually programmers resolve an issue and a person who created an issue closes it after testing. Here is a good discussion about close vs resolve - https://stackoverflow.com/a/4718505/941776. Is there a particular need to close issues when they are released?