action: function()

in js/wait-for-reply-state/notify-assignee.js [14:26]


  action: function(ctx) {
    var issue = ctx.issue;
    var subject = "[Youtrack, 'Wait for Reply' reminder] Unanswered comment within 5 days";
    var body =
      "Hi, " + issue.fields.Assignee.fullName + "! <br><br> " +
      "Issue <a href='" + issue.url + "'>" + issue.id + " " + issue.summary + "</a> " +
      "is in state 'Wait for Reply' more than 5 days. " +
      "It has unanswered comment:<br><b>" + issue.comments.last().text +
      "</b><br><br> Please answer or resolved issue.<br><br>" +
      "<p style='color: gray;font-size: 12px;margin-top: 1em;border-top: 1px solid #D4D5D6'>" +
      "Sincerely yours, YouTrack" + "</p>";
    issue.fields.Assignee.notify(subject, body);
  },