Skip to content

Commit

Permalink
1882: add status, start and end date to milestone headline
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen committed Aug 6, 2024
1 parent 290b4da commit 966beb5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Domain/Tickets/Services/Tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,12 @@ public function getAllGrouped($searchCriteria): array
$milestone = $this->getTicket($ticket["milestoneid"]);
$color = $milestone->tags;
$class = '" style="color:' . $color . '"';

$label = $ticket["milestoneHeadline"] . " <a href='#/tickets/editMilestone/" . $ticket["milestoneid"] . "' style='float:right;'><i class='fa fa-edit'></i></a><a>";
$startDate = strtok($milestone->editFrom,' ');
$endDate = strtok($milestone->editTo, " ");
$statusLabels = $this->getStatusLabels($milestone->projectId);
$status = $statusLabels[$milestone->status]['name'];
$class = '" style="color:' . $color . '"';
$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>";
}

break;
Expand Down

0 comments on commit 966beb5

Please sign in to comment.