action: function()

in js/advanced-state-machine/state-machine.js [15:31]


          action: function(ctx) {
            var issue = ctx.issue;
            var user = issue.fields.Assignee;
            if (!user) {
              user = issue.project.leader;
            }
            var subject = "[Youtrack, State reminder] Issue " + issue.id +
              " is still Submitted: " + issue.summary;
            var body = "Hi, " + user.fullName +
              "! <br><br> Issue <a href=''" + issue.url + "'>" + issue.id +
              "</a>" + " is still in Submitted state: " +
              "<a href='" + issue.url + "'>" + issue.summary + "</a>" +
              "<br> Please start working on it or specify a more accurate state.<br><br>" +
              "<p style='color: gray;font-size: 12px;margin-top: 1em;border-top: 1px solid #D4D5D6'>" +
              "Sincerely yours, YouTrack" + "</p>";
            user.notify(subject, body);
          },