简体   繁体   English

JIRA与脚本运行器,发送自定义电子邮件

[英]JIRA with script runner, send custom email

I'm using Script Runner plugin with JIRA to send a custom email when an issue is resolved. 解决问题后,我将JIRA与Script Runner插件配合使用来发送自定义电子邮件。

The email is sent, but the problem is that the content of this email is added as a comment to the corresponding issue. 已发送电子邮件,但问题是此电子邮件的内容已添加为对相应问题的注释。

Is there any solution to avoid this ? 有什么解决办法可以避免这种情况?

Note : Scripts are writed in Groovy 注意:脚本是用Groovy编写的

I managed to find a solution by asking this question on Atlassian site : 我设法通过在Atlassian网站上提出以下问题来找到解决方案:

https://answers.atlassian.com/questions/328038/ https://answers.atlassian.com/questions/328038/

Answer : When an issue is sent to "issues@mycompany.com", I configured JIRA to create a user for every CC adresses so they can receive email when the issue is resolved. 答:当问题发送到“ issues@mycompany.com”时,我配置JIRA为每个CC地址创建一个用户,以便他们在解决问题后可以接收电子邮件。 But sometimes, the email adress "issues@mycompany.com" is not the direct recipient of the email, it is put in the CC field. 但是有时,电子邮件地址“ issues@mycompany.com”不是电子邮件的直接收件人,而是放在“抄送”字段中。 So the user "issues@mycompany.com" is created ... 因此,创建了用户“ issues@mycompany.com” ...

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

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