$issueInfo['availableDurationList'] = self::getDurationList($teamid); $issueInfo['trackDate'] = $trackDate; } // display calculatedBacklog depending on team settings $team = TeamCache::getInstance()->getTeam($teamid); if (1 == $team->getGeneralPreference('displayCalculatedBacklogInDialogbox')) { // Note: if Backlog is NULL, the values to propose in the DialogBox // are not the ones used for ProjectManagement if (!is_null($backlog) && is_numeric($backlog)) { // normal case $calculatedBacklog = $backlog - $trackDuration; } else { // reestimated cannot be used... $calculatedBacklog = $totalEE - $issue->getElapsed() - $trackDuration; } if ($calculatedBacklog < 0) { $calculatedBacklog = 0; } $issueInfo['calculatedBacklog'] = $calculatedBacklog; } if (!is_null($deadline) || 0 != $deadline) { $formatedDate = Tools::formatDate("%Y-%m-%d", $deadline); $issueInfo['deadline'] = $formatedDate; } $jsonIssueInfo = json_encode($issueInfo); return $jsonIssueInfo; } } // Initialize complex static variables TimeTrackingTools::staticInit();