Daylie sending open Issues by Email

I want to send every day a list of the open Issues to the developer which is assigned to.
Is there already a template which I can use for it?
2 comments
Comment actions Permalink
Hello Waldemar Merk,

Yes, you may try this one
schedule rule Wait for reply reminder 
 
daily at 12:00:00 [issue.State == {Wait for Reply}] { 
  var lastComment = comments.last; 
  if (lastComment != null && lastComment.author.isInGroup("youtrack-developers") && lastComment.created + 5 days < now && lastComment.author != Assignee) { 
    if (Assignee != null) { 
      Assignee.notify("[Youtrack, 'Wait for reply' reminder] Unanswered comment within 5 days", "Hi, " + Assignee.fullName + "! <br><br> Issue <a href=\"" + getUrl() + "\">" + getId() + " " + summary + "</a>" + " is in state \"Wait for reply\" more than 5 days." + " It has unanswered comment:<br>" + lastComment.text + "<br><br>Please zresolve this issue.<br><br>" + "<p style=\"color: gray;font-size: 12px;margin-top: 1em;border-top: 1px solid #D4D5D6\">" + "Sincerely yours, YouTrack" + "</p>"); 
    } 
  } 
}
prettyPrint();
This particular workflow notifies assignee developer when issue is in 'Wait for reply' state and last comment was added by non-assignee person. Notification sends everyday at 12 o'clock. I assume, you may send just notifications without conditions about unanswered comments.

Thank you.
0
Comment actions Permalink
Please, also note, example has the 5 days delay. That is notifications send if comments was has been unanswered during 5 days.

Thank you.
0

Please sign in to leave a comment.