Commit 1cfa0eb2 authored by cividesk's avatar cividesk

Added critical alert, tweak templates

parent 872e5775
......@@ -7,9 +7,23 @@ $alerts = array(
'recipients' => array('nicolas@cividesk.com'),
'subject' => '[CiviCRM] Weekly security issues status',
'query' => "
SELECT issue, summary, priority, SUBSTRING(security, 12) as security, resolution, assignee
SELECT issue, CONCAT('https://issues.civicrm.org/jira/browse/', issue) AS issue_url, summary,
priority, status, assignee
FROM jira_issue
WHERE status = 'Open' AND security IS NOT NULL
WHERE status != 'Closed' AND security IS NOT NULL
ORDER BY priority, jira_id
",
'template' => 'security.twig',
),
array(
'recipients' => array('nicolas@cividesk.com'),
'subject' => '[CiviCRM] Weekly CiviCRM issues status',
'query' => "
SELECT issue, CONCAT('https://issues.civicrm.org/jira/browse/', issue) AS issue_url, summary,
priority, status, assignee
FROM jira_issue
WHERE priority <= 'Critical' AND status != 'Closed' AND security IS NULL
ORDER BY priority, jira_id
",
'template' => 'security.twig',
),
......
<p>Hi CiviCRM dev team,</p>
<p>This is your weekly recap of all open critical issues. Let's work on closing these issues!</p>
<table>
{% for item in results %}
<tr>
<td align="right"><a href="{{ item.issue_url }}">{{ item.issue }}</a></td>
<td colspan=2>{{ item.summary }} </td>
</tr><tr>
<td align="right">{{ item.priority }}</td>
<td>{{ item.status }}</td>
<td>Assigned to: <b>{{ item.assignee }}</b></td>
</tr>
<tr></tr>
{% endfor %}
</table>
<p>Cheers!<br/>
<pre>--<a href="'https://stats.civicrm.org">stats.civicrm.org</a></pre></p>
\ No newline at end of file
......@@ -5,14 +5,14 @@
<table>
{% for item in results %}
<tr>
<td align="right">{{ item.issue }}</td>
<td colspan=3>{{ item.summary }} </td>
<td align="right"><a href="{{ item.issue_url }}">{{ item.issue }}</a></td>
<td colspan=2>{{ item.summary }} </td>
</tr><tr>
<td align="right">{{ item.priority }}</td>
<td>{{ item.security }}</td>
<td>{{ item.resolution }}</td>
<td>{{ item.assignee }}</td>
<td>{{ item.status }}</td>
<td>Assigned to: <b>{{ item.assignee }}</b></td>
</tr>
<tr></tr>
{% endfor %}
</table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment