public function findRelatedIssuesByRepository(RepositoryInterface $repository, $shortName, $numericId)
    {
        $repositoryIds = [];
        foreach ($repository->getProjects() as $project) {
            $repositoryIds[] = $project->getId();
        }

        $queryBuilder = $this->repository->createQueryBuilder('i')
            ->leftJoin('i.project', 'p');
        $this->addCriteria($queryBuilder, [
                'in'          => ['i.project' => $repositoryIds],
                'p.shortName' => $shortName, 'i.numericId' => $numericId,
            ]
        );

        return $queryBuilder->getQuery()->getResult();
    }