add acknowledgement link to table
This commit is contained in:
parent
9c0a5603d3
commit
98d8e3c837
@ -141,13 +141,19 @@ class oncall {
|
||||
|
||||
//Add header row
|
||||
$table .= "\n### $label\n";
|
||||
$table .= "| Issue | Project | Author | Subject | Minutes Elapsed |\n| :----- | :------- | :----- | :-------| ----: |\n";
|
||||
$table .= "| Issue | Project | Author | Subject | Minutes Elapsed | Acknowledge |\n| :----- | :------- | :----- | :-------| ----: | ----: |\n";
|
||||
foreach ($queryResult as $item) {
|
||||
$table .= "| [{$item['id']}](https://hq.megaphonetech.com/issues/{$item['id']}) ";
|
||||
$table .= "| {$item['project']['name']} ";
|
||||
$table .= "| {$item['author']['name']} ";
|
||||
$table .= "| {$item['subject']} ";
|
||||
$table .= "| {$item['minutes']} ";
|
||||
if ($label == 'New Maintenance Tickets') {
|
||||
$table .= "| [Do Not Alert](https://oncall.megaphonetech.com/update_redmine.php?action=do_not_alert&issue={$item['id']}) ";
|
||||
}
|
||||
else {
|
||||
$table .= "| ";
|
||||
}
|
||||
$table .= "|\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user