Skip to content

Commit 966beb5

Browse files
committed
1882: add status, start and end date to milestone headline
1 parent 290b4da commit 966beb5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/Domain/Tickets/Services/Tickets.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,12 @@ public function getAllGrouped($searchCriteria): array
545545
$milestone = $this->getTicket($ticket["milestoneid"]);
546546
$color = $milestone->tags;
547547
$class = '" style="color:' . $color . '"';
548-
549-
$label = $ticket["milestoneHeadline"] . " <a href='#/tickets/editMilestone/" . $ticket["milestoneid"] . "' style='float:right;'><i class='fa fa-edit'></i></a><a>";
548+
$startDate = strtok($milestone->editFrom,' ');
549+
$endDate = strtok($milestone->editTo, " ");
550+
$statusLabels = $this->getStatusLabels($milestone->projectId);
551+
$status = $statusLabels[$milestone->status]['name'];
552+
$class = '" style="color:' . $color . '"';
553+
$label = $ticket["milestoneHeadline"] . ", start: " . $startDate . ", slut: " . $endDate . ", status: " . $status . " <a href='#/tickets/editMilestone/" . $ticket["milestoneid"] . "' style='float:right;'><i class='fa fa-edit'></i></a><a>";
550554
}
551555

552556
break;

0 commit comments

Comments
 (0)