-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathworklogs.php
More file actions
28 lines (19 loc) · 769 Bytes
/
worklogs.php
File metadata and controls
28 lines (19 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require 'inc.bootstrap.php';
do_logincheck();
$key = @$_GET['key'];
$subtasks = array_filter(explode(',', @$_GET['subtasks']));
$summary = @$_GET['summary'];
$worklogs = array();
foreach (array_merge(array($key), $subtasks) as $lkey) {
$log = jira_get('issue/' . $lkey . '/worklog');
$worklogs = array_merge($worklogs, $log->worklogs);
}
$_title = "Worklogs $key";
include 'tpl.header.php';
echo '<h1><a href="issue.php?key=' . $key . '">' . $key . '</a> ' . html($summary) . '</h1>';
echo '<h2 class="pre-menu">' . count($worklogs) . ' worklogs</h2> (<a href="logwork.php?key=' . $key . '&summary=' . urlencode($summary) . '">add</a>)';
$filterDate = @$_GET['date'];
$filterUser = @$_GET['user'];
include 'tpl.worklogs.php';
include 'tpl.footer.php';