我写了一条规则来发送一封电子邮件,其中列出了在上周关闭的问题列表。问题是,我总是收到很多内容相同的电子邮件。(每个问题我都会收到一封电子邮件)
这是我在 youtrack-workflow 编辑器中编写的代码:
schedule rule:
weekly on Monday at 12:08:00 [project == {projekt1}]
{
var ClosedIssuesList = "";
for each Issue in project.issues
{
var Date = Issue.updated;
if (Issue.State == {Closed} && now < Date + 7 days)
{
ClosedIssuesList = ClosedIssuesList + Issue.getId() + "\n";
}
}
project.getUser("username").notify("Closed Issues", ClosedIssuesList);
}
我该如何解决这个问题?感谢您的帮助!