private static string GetReportJson(ReportItem[] reportItems)
 {
     return Json.Encode(reportItems);
 }
        private static string GetReportHtml(ReportItem[] reportItems)
        {
            var dt = DateTime.Now;
            var sb = new StringBuilder();
            sb.AppendFormat("<h1>DAILY STATUS ({0}/{1}/{2})</h1>", dt.Month, dt.Day, dt.Year);

            foreach (var item in reportItems)
            {
                sb.AppendFormat("<br/><h3>{0}</h3>", item.Author);

                var html = item.Issues.Select(FormatIssue).Aggregate((x, y) => x + "<br />" + y);

                sb.Append(html);
            }

            sb.Append("<br/><p/><hr/><br/>");
            sb.Append(
                "<p><a href='https://github.com/kefir0/jira-reporter/'>https://github.com/kefir0/jira-reporter/</a></p>");

            var reportHtml = sb.ToString();
            return reportHtml;
        }