svg
This commit is contained in:
@ -238,6 +238,15 @@ class RedmineService
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Parent
|
||||
foreach ($project->getIssues() as $issue) {
|
||||
$parent = null;
|
||||
if (array_key_exists('parent', $issue->getRedmine())) {
|
||||
$parent = $this->issueRepository->find($issue->getRedmine()['parent']['id']);
|
||||
}
|
||||
$issue->setParent($parent);
|
||||
}
|
||||
}
|
||||
|
||||
public function getProjectIssues(int $projectId, string $apiKey, ?\DateTimeInterface $updatedSince = null): array
|
||||
@ -251,7 +260,7 @@ class RedmineService
|
||||
'project_id' => $projectId,
|
||||
'limit' => $limit,
|
||||
'offset' => $offset,
|
||||
'status_id' => '*', // Inclure toutes les issues
|
||||
'status_id' => '*',
|
||||
];
|
||||
|
||||
if (null !== $updatedSince) {
|
||||
@ -274,6 +283,7 @@ class RedmineService
|
||||
$issues = $data['issues'] ?? [];
|
||||
|
||||
foreach ($issues as $key => $issue) {
|
||||
$issues[$key] = $this->getIssue($issue['id'], $apiKey);
|
||||
$issues[$key]['sprint'] = $this->getIssueAgile($issue['id'], $apiKey);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user