68 if (!$this->checkViewRights())
72 'status' => $this->task->getStatus(),
76 foreach ($this->task->getTaskUsers() as $taskUser)
79 'id' => $taskUser->getUserId(),
80 'status' => $taskUser->getStatus(),
83 if ($taskUser->hasDateUpdate() && $taskUser->get(
'DATE_UPDATE') !==
null)
85 $dateUpdate = $taskUser->get(
'DATE_UPDATE');
92 if ($this->getCreatedDate())
94 $userData[
'executionTime'] = $dateUpdate->getTimestamp() - $this->getCreatedDate()->getTimestamp();
102 'id' => $this->task->getId(),
103 'name' => $this->task->getName(),
104 'status' => $this->task->getStatus(),
105 'modified' => $this->task->getModified()->getTimestamp(),
110 if ($this->approveType)
112 $viewData[
'approveType'] = $this->approveType;